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

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

Issue 2765133002: [WIP] Add DocumentMarkerController::addGrammarMarker() and addSpellingMarker() (Closed)
Patch Set: Respond to comments Created 3 years, 9 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 e1a99b4a41df48899746c6311809478b297ab73f..78c73cd0908da776e1b01e90852e6e09e0df1623 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -54,10 +54,13 @@ class CORE_EXPORT DocumentMarkerController final
void clear();
void addMarker(Node*, DocumentMarker*);
- void addMarker(const Position& start,
- const Position& end,
- DocumentMarker::MarkerType,
- const String& description = emptyString);
+
+ void addSpellingMarker(const Position& start,
+ const Position& end,
+ const String& description = emptyString);
+ void addGrammarMarker(const Position& start,
+ const Position& end,
+ const String& description = emptyString);
void addTextMatchMarker(const EphemeralRange&, bool activeMatch);
void addCompositionMarker(const Position& start,
const Position& end,
@@ -135,6 +138,10 @@ class CORE_EXPORT DocumentMarkerController final
private:
using MarkerMap = HeapHashMap<WeakMember<Node>, Member<DocumentMarkerList>>;
+ void addGrammarOrSpellingMarker(const Position& start,
+ const Position& end,
+ DocumentMarker::MarkerType,
+ const String& description);
DocumentMarkerList* createMarkerListOfType(DocumentMarker::MarkerType);
HeapVector<Member<DocumentMarkerList>> getMarkerListsForNode(
Node*,
« 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