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

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

Issue 2801483002: Add DocumentMarker::MatchStatus enum for text match markers (Closed)
Patch Set: Update tests Created 3 years, 8 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/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 d759b830964c19c5772b67eb272b1d8a3637541b..285490a8c0b6617640061e8522e3d9b3e479c7e0 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -66,7 +66,8 @@ class CORE_EXPORT DocumentMarkerController final
const Position& end,
DocumentMarker::MarkerType,
const String& description = emptyString);
- void addTextMatchMarker(const EphemeralRange&, bool activeMatch);
+ void addTextMatchMarker(const EphemeralRange&,
+ DocumentMarker::MatchStatus activeMatch);
void addCompositionMarker(const Position& start,
const Position& end,
Color underlineColor,
@@ -109,10 +110,13 @@ class CORE_EXPORT DocumentMarkerController final
DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers());
void shiftMarkers(Node*, unsigned startOffset, int delta);
// Returns true if markers within a range are found.
- bool setMarkersActive(const EphemeralRange&, bool);
+ bool setMarkersActive(const EphemeralRange&, DocumentMarker::MatchStatus);
// Returns true if markers within a range defined by a node, |startOffset| and
// |endOffset| are found.
- bool setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool);
+ bool setMarkersActive(Node*,
+ unsigned startOffset,
+ unsigned endOffset,
+ DocumentMarker::MatchStatus);
bool hasMarkers(Node* node) const { return m_markers.contains(node); }
DocumentMarkerVector markersFor(

Powered by Google App Engine
This is Rietveld 408576698