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

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

Issue 2960473002: [MarkersIntersectingRange #2.1] Add DocumentMarkerController::FirstMarkerIntersectingOffsetRange() (Closed)
Patch Set: Rebase Created 3 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
index 64d9ebdb2ac32b413c008162d48ba1d76fef6fc3..c8a4e4192ec35d8b66dc11b72bee6b40607f60dc 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -94,6 +94,17 @@ class CORE_EXPORT DocumentMarkerController final
// Position in its interior (not at an endpoint), if one exists.
DocumentMarker* MarkerAtPosition(const Position&,
DocumentMarker::MarkerTypes);
+ // Looks for a marker in the specified node of the specified type whose
+ // interior has non-empty overlap with the range [start_offset, end_offset].
+ // If the range is collapsed, this looks for a marker containing the offset of
+ // the collapsed range in its interior.
+ // If such a marker exists, this method will return one of them (no guarantees
+ // are provided as to which one). Otherwise, this method will return null.
+ DocumentMarker* FirstMarkerIntersectingOffsetRange(
+ const Text&,
+ unsigned start_offset,
+ unsigned end_offset,
+ DocumentMarker::MarkerTypes);
DocumentMarkerVector MarkersFor(
Node*,
DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698