Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h

Issue 2952953002: [MarkersIntersectingRange #1] Add DocumentMarkerList::MarkersIntersectingRange() (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h
index 457507e2390bcc042ab0cb26a80fb635dc7782bf..b5890004ec5fcf3f2ba745189e4b9f942bd179fc 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h
@@ -31,7 +31,13 @@ class CORE_EXPORT DocumentMarkerList
virtual void Add(DocumentMarker*) = 0;
virtual void Clear() = 0;
+ // Returns all markers
virtual const HeapVector<Member<DocumentMarker>>& GetMarkers() const = 0;
+ // Returns markers that have non-empty overlap with the range
+ // [start_offset, end_offset]
+ virtual HeapVector<Member<DocumentMarker>> MarkersIntersectingRange(
+ unsigned start_offset,
+ unsigned end_offset) const = 0;
// Returns true if at least one marker is copied, false otherwise
virtual bool MoveMarkers(int length, DocumentMarkerList* dst_list) = 0;

Powered by Google App Engine
This is Rietveld 408576698