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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 class MisspellingMarkers : public MarkerTypes { | 127 class MisspellingMarkers : public MarkerTypes { |
128 public: | 128 public: |
129 MisspellingMarkers() : MarkerTypes(Spelling | Grammar) {} | 129 MisspellingMarkers() : MarkerTypes(Spelling | Grammar) {} |
130 }; | 130 }; |
131 | 131 |
132 class SpellCheckClientMarkers : public MarkerTypes { | 132 class SpellCheckClientMarkers : public MarkerTypes { |
133 public: | 133 public: |
134 SpellCheckClientMarkers() : MarkerTypes(Spelling | Grammar) {} | 134 SpellCheckClientMarkers() : MarkerTypes(Spelling | Grammar) {} |
135 }; | 135 }; |
136 | 136 |
| 137 enum class MatchStatus { kInactive, kActive }; |
| 138 |
137 DocumentMarker(MarkerType, | 139 DocumentMarker(MarkerType, |
138 unsigned startOffset, | 140 unsigned startOffset, |
139 unsigned endOffset, | 141 unsigned endOffset, |
140 const String& description); | 142 const String& description); |
141 DocumentMarker(unsigned startOffset, unsigned endOffset, bool activeMatch); | 143 DocumentMarker(unsigned startOffset, unsigned endOffset, MatchStatus); |
142 DocumentMarker(unsigned startOffset, | 144 DocumentMarker(unsigned startOffset, |
143 unsigned endOffset, | 145 unsigned endOffset, |
144 Color underlineColor, | 146 Color underlineColor, |
145 bool thick, | 147 bool thick, |
146 Color backgroundColor); | 148 Color backgroundColor); |
147 | 149 |
148 DocumentMarker(const DocumentMarker&); | 150 DocumentMarker(const DocumentMarker&); |
149 | 151 |
150 MarkerType type() const { return m_type; } | 152 MarkerType type() const { return m_type; } |
151 unsigned startOffset() const { return m_startOffset; } | 153 unsigned startOffset() const { return m_startOffset; } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 virtual bool isDescription() const { return false; } | 199 virtual bool isDescription() const { return false; } |
198 virtual bool isTextMatch() const { return false; } | 200 virtual bool isTextMatch() const { return false; } |
199 virtual bool isComposition() const { return false; } | 201 virtual bool isComposition() const { return false; } |
200 | 202 |
201 DEFINE_INLINE_VIRTUAL_TRACE() {} | 203 DEFINE_INLINE_VIRTUAL_TRACE() {} |
202 }; | 204 }; |
203 | 205 |
204 } // namespace blink | 206 } // namespace blink |
205 | 207 |
206 #endif // DocumentMarker_h | 208 #endif // DocumentMarker_h |
OLD | NEW |