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

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

Issue 2764743004: Add DocumentMarker::createGrammarMarker() and createSpellingMarker() (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
index 15a2a73a344889550e86ce5ebac4109bdba2ab8e..f8cc85d8e4cc24b139b9bb7ef178ca8e4af591a8 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
@@ -96,15 +96,18 @@ class CORE_EXPORT DocumentMarker : public GarbageCollected<DocumentMarker> {
Color underlineColor,
bool thick,
Color backgroundColor);
+ static DocumentMarker* createGrammarMarker(
+ unsigned startOffset,
+ unsigned endOffset,
+ const String& description = emptyString);
Xiaocheng 2017/03/22 01:42:51 No need to introduce default parameter. Btw, it s
rlanday 2017/03/22 01:51:30 Oh oops, I think the default param is supposed to
Xiaocheng 2017/03/22 01:56:07 I'm fine with having two ctors.
+ static DocumentMarker* createSpellingMarker(
+ unsigned startOffset,
+ unsigned endOffset,
+ const String& description = emptyString);
static DocumentMarker* createTextMatchMarker(unsigned startOffset,
unsigned endOffset,
bool activeMatch);
- DocumentMarker(MarkerType,
- unsigned startOffset,
- unsigned endOffset,
- const String& description);
-
DocumentMarker(const DocumentMarker&);
MarkerType type() const { return m_type; }

Powered by Google App Engine
This is Rietveld 408576698