Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * This file is part of the DOM implementation for WebCore. | 2 * This file is part of the DOM implementation for WebCore. |
| 3 * | 3 * |
| 4 * Copyright (C) 2006 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 class SpellCheckClientMarkers : public MarkerTypes { | 89 class SpellCheckClientMarkers : public MarkerTypes { |
| 90 public: | 90 public: |
| 91 SpellCheckClientMarkers() : MarkerTypes(Spelling | Grammar) {} | 91 SpellCheckClientMarkers() : MarkerTypes(Spelling | Grammar) {} |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 static DocumentMarker* createCompositionMarker(unsigned startOffset, | 94 static DocumentMarker* createCompositionMarker(unsigned startOffset, |
| 95 unsigned endOffset, | 95 unsigned endOffset, |
| 96 Color underlineColor, | 96 Color underlineColor, |
| 97 bool thick, | 97 bool thick, |
| 98 Color backgroundColor); | 98 Color backgroundColor); |
| 99 static DocumentMarker* createGrammarMarker( | |
| 100 unsigned startOffset, | |
| 101 unsigned endOffset, | |
| 102 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.
| |
| 103 static DocumentMarker* createSpellingMarker( | |
| 104 unsigned startOffset, | |
| 105 unsigned endOffset, | |
| 106 const String& description = emptyString); | |
| 99 static DocumentMarker* createTextMatchMarker(unsigned startOffset, | 107 static DocumentMarker* createTextMatchMarker(unsigned startOffset, |
| 100 unsigned endOffset, | 108 unsigned endOffset, |
| 101 bool activeMatch); | 109 bool activeMatch); |
| 102 | 110 |
| 103 DocumentMarker(MarkerType, | |
| 104 unsigned startOffset, | |
| 105 unsigned endOffset, | |
| 106 const String& description); | |
| 107 | |
| 108 DocumentMarker(const DocumentMarker&); | 111 DocumentMarker(const DocumentMarker&); |
| 109 | 112 |
| 110 MarkerType type() const { return m_type; } | 113 MarkerType type() const { return m_type; } |
| 111 unsigned startOffset() const { return m_startOffset; } | 114 unsigned startOffset() const { return m_startOffset; } |
| 112 unsigned endOffset() const { return m_endOffset; } | 115 unsigned endOffset() const { return m_endOffset; } |
| 113 | 116 |
| 114 const String& description() const; | 117 const String& description() const; |
| 115 bool activeMatch() const; | 118 bool activeMatch() const; |
| 116 Color underlineColor() const; | 119 Color underlineColor() const; |
| 117 bool thick() const; | 120 bool thick() const; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 virtual bool isDescription() const { return false; } | 176 virtual bool isDescription() const { return false; } |
| 174 virtual bool isTextMatch() const { return false; } | 177 virtual bool isTextMatch() const { return false; } |
| 175 virtual bool isComposition() const { return false; } | 178 virtual bool isComposition() const { return false; } |
| 176 | 179 |
| 177 DEFINE_INLINE_VIRTUAL_TRACE() {} | 180 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 178 }; | 181 }; |
| 179 | 182 |
| 180 } // namespace blink | 183 } // namespace blink |
| 181 | 184 |
| 182 #endif // DocumentMarker_h | 185 #endif // DocumentMarker_h |
| OLD | NEW |