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 af697ab3b8a72cd1b2625d552a7755ec065558e5..220c08c83f1280bd1613af6fe8b94e843217fb0a 100644 |
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h |
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h |
@@ -54,16 +54,19 @@ 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 addTextMatchMarker(const EphemeralRange&, bool activeMatch); |
Xiaocheng
2017/03/22 02:00:29
nit: Shouldn't move this line.
|
+ |
void addCompositionMarker(const Position& start, |
const Position& end, |
Color underlineColor, |
bool thick, |
Color backgroundColor); |
+ void addGrammarMarker(const Position& start, |
+ const Position& end, |
+ const String& description = emptyString); |
+ void addSpellingMarker(const Position& start, |
+ const Position& end, |
+ const String& description = emptyString); |
+ void addTextMatchMarker(const EphemeralRange&, bool activeMatch); |
void copyMarkers(Node* srcNode, |
unsigned startOffset, |
@@ -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*, |