Chromium Code Reviews| 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; } |