| 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 23 matching lines...) Expand all Loading... |
| 34 class DocumentMarkerDetails; | 34 class DocumentMarkerDetails; |
| 35 | 35 |
| 36 // A range of a node within a document that is "marked", such as the range of a
misspelled word. | 36 // A range of a node within a document that is "marked", such as the range of a
misspelled word. |
| 37 // It optionally includes a description that could be displayed in the user inte
rface. | 37 // It optionally includes a description that could be displayed in the user inte
rface. |
| 38 // It also optionally includes a flag specifying whether the match is active, wh
ich is ignored | 38 // It also optionally includes a flag specifying whether the match is active, wh
ich is ignored |
| 39 // for all types other than type TextMatch. | 39 // for all types other than type TextMatch. |
| 40 class CORE_EXPORT DocumentMarker : public NoBaseWillBeGarbageCollected<DocumentM
arker> { | 40 class CORE_EXPORT DocumentMarker : public NoBaseWillBeGarbageCollected<DocumentM
arker> { |
| 41 public: | 41 public: |
| 42 enum MarkerTypeIndex { | 42 enum MarkerTypeIndex { |
| 43 SpellingMarkerIndex = 0, | 43 SpellingMarkerIndex = 0, |
| 44 GramarMarkerIndex, | 44 GrammarMarkerIndex, |
| 45 TextMatchMarkerIndex, | 45 TextMatchMarkerIndex, |
| 46 InvisibleSpellcheckMarkerIndex, | 46 InvisibleSpellcheckMarkerIndex, |
| 47 CompositionMarkerIndex, | 47 CompositionMarkerIndex, |
| 48 MarkerTypeIndexesCount | 48 MarkerTypeIndexesCount |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 enum MarkerType { | 51 enum MarkerType { |
| 52 Spelling = 1 << SpellingMarkerIndex, | 52 Spelling = 1 << SpellingMarkerIndex, |
| 53 Grammar = 1 << GramarMarkerIndex, | 53 Grammar = 1 << GrammarMarkerIndex, |
| 54 TextMatch = 1 << TextMatchMarkerIndex, | 54 TextMatch = 1 << TextMatchMarkerIndex, |
| 55 InvisibleSpellcheck = 1 << InvisibleSpellcheckMarkerIndex, | 55 InvisibleSpellcheck = 1 << InvisibleSpellcheckMarkerIndex, |
| 56 Composition = 1 << CompositionMarkerIndex, | 56 Composition = 1 << CompositionMarkerIndex, |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 class MarkerTypes { | 59 class MarkerTypes { |
| 60 public: | 60 public: |
| 61 // The constructor is intentionally implicit to allow conversion from th
e bit-wise sum of above types | 61 // The constructor is intentionally implicit to allow conversion from th
e bit-wise sum of above types |
| 62 MarkerTypes(unsigned mask) : m_mask(mask) { } | 62 MarkerTypes(unsigned mask) : m_mask(mask) { } |
| 63 | 63 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 virtual bool isDescription() const { return false; } | 157 virtual bool isDescription() const { return false; } |
| 158 virtual bool isTextMatch() const { return false; } | 158 virtual bool isTextMatch() const { return false; } |
| 159 virtual bool isComposition() const { return false; } | 159 virtual bool isComposition() const { return false; } |
| 160 | 160 |
| 161 DEFINE_INLINE_VIRTUAL_TRACE() { } | 161 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace blink | 164 } // namespace blink |
| 165 | 165 |
| 166 #endif // DocumentMarker_h | 166 #endif // DocumentMarker_h |
| OLD | NEW |