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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 MarkerTypesIterator begin() const { return MarkerTypesIterator(mask_); } | 116 MarkerTypesIterator begin() const { return MarkerTypesIterator(mask_); } |
117 MarkerTypesIterator end() const { return MarkerTypesIterator(0); } | 117 MarkerTypesIterator end() const { return MarkerTypesIterator(0); } |
118 | 118 |
119 private: | 119 private: |
120 unsigned mask_; | 120 unsigned mask_; |
121 }; | 121 }; |
122 | 122 |
123 class AllMarkers : public MarkerTypes { | 123 class AllMarkers : public MarkerTypes { |
124 public: | 124 public: |
125 AllMarkers() | 125 AllMarkers() : MarkerTypes((1 << kMarkerTypeIndexesCount) - 1) {} |
126 : MarkerTypes(kSpelling | kGrammar | kTextMatch | kComposition) {} | |
127 }; | 126 }; |
128 | 127 |
129 class MisspellingMarkers : public MarkerTypes { | 128 class MisspellingMarkers : public MarkerTypes { |
130 public: | 129 public: |
131 MisspellingMarkers() : MarkerTypes(kSpelling | kGrammar) {} | 130 MisspellingMarkers() : MarkerTypes(kSpelling | kGrammar) {} |
132 }; | 131 }; |
133 | 132 |
134 enum class MatchStatus { kInactive, kActive }; | 133 enum class MatchStatus { kInactive, kActive }; |
135 | 134 |
136 DocumentMarker(MarkerType, | 135 DocumentMarker(MarkerType, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 virtual bool IsDescription() const { return false; } | 197 virtual bool IsDescription() const { return false; } |
199 virtual bool IsTextMatch() const { return false; } | 198 virtual bool IsTextMatch() const { return false; } |
200 virtual bool IsComposition() const { return false; } | 199 virtual bool IsComposition() const { return false; } |
201 | 200 |
202 DEFINE_INLINE_VIRTUAL_TRACE() {} | 201 DEFINE_INLINE_VIRTUAL_TRACE() {} |
203 }; | 202 }; |
204 | 203 |
205 } // namespace blink | 204 } // namespace blink |
206 | 205 |
207 #endif // DocumentMarker_h | 206 #endif // DocumentMarker_h |
OLD | NEW |