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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 unsigned startOffset() const { return m_startOffset; } | 151 unsigned startOffset() const { return m_startOffset; } |
152 unsigned endOffset() const { return m_endOffset; } | 152 unsigned endOffset() const { return m_endOffset; } |
153 | 153 |
154 const String& description() const; | 154 const String& description() const; |
155 bool activeMatch() const; | 155 bool activeMatch() const; |
156 Color underlineColor() const; | 156 Color underlineColor() const; |
157 bool thick() const; | 157 bool thick() const; |
158 Color backgroundColor() const; | 158 Color backgroundColor() const; |
159 DocumentMarkerDetails* details() const; | 159 DocumentMarkerDetails* details() const; |
160 | 160 |
161 void setActiveMatch(bool); | 161 void setIsActiveMatch(bool); |
162 void clearDetails() { m_details.clear(); } | 162 void clearDetails() { m_details.clear(); } |
163 | 163 |
164 // Offset modifications are done by DocumentMarkerController. | 164 // Offset modifications are done by DocumentMarkerController. |
165 // Other classes should not call following setters. | 165 // Other classes should not call following setters. |
166 void setStartOffset(unsigned offset) { m_startOffset = offset; } | 166 void setStartOffset(unsigned offset) { m_startOffset = offset; } |
167 void setEndOffset(unsigned offset) { m_endOffset = offset; } | 167 void setEndOffset(unsigned offset) { m_endOffset = offset; } |
168 void shiftOffsets(int delta); | 168 void shiftOffsets(int delta); |
169 | 169 |
170 bool operator==(const DocumentMarker& o) const { | 170 bool operator==(const DocumentMarker& o) const { |
171 return type() == o.type() && startOffset() == o.startOffset() && | 171 return type() == o.type() && startOffset() == o.startOffset() && |
(...skipping 25 matching lines...) Expand all Loading... |
197 virtual bool isDescription() const { return false; } | 197 virtual bool isDescription() const { return false; } |
198 virtual bool isTextMatch() const { return false; } | 198 virtual bool isTextMatch() const { return false; } |
199 virtual bool isComposition() const { return false; } | 199 virtual bool isComposition() const { return false; } |
200 | 200 |
201 DEFINE_INLINE_VIRTUAL_TRACE() {} | 201 DEFINE_INLINE_VIRTUAL_TRACE() {} |
202 }; | 202 }; |
203 | 203 |
204 } // namespace blink | 204 } // namespace blink |
205 | 205 |
206 #endif // DocumentMarker_h | 206 #endif // DocumentMarker_h |
OLD | NEW |