| 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 17 matching lines...) Expand all Loading... |
| 28 #include "wtf/text/WTFString.h" | 28 #include "wtf/text/WTFString.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class DocumentMarkerDetails; | 32 class DocumentMarkerDetails; |
| 33 | 33 |
| 34 // A range of a node within a document that is "marked", such as the range of a
misspelled word. | 34 // A range of a node within a document that is "marked", such as the range of a
misspelled word. |
| 35 // It optionally includes a description that could be displayed in the user inte
rface. | 35 // It optionally includes a description that could be displayed in the user inte
rface. |
| 36 // It also optionally includes a flag specifying whether the match is active, wh
ich is ignored | 36 // It also optionally includes a flag specifying whether the match is active, wh
ich is ignored |
| 37 // for all types other than type TextMatch. | 37 // for all types other than type TextMatch. |
| 38 class DocumentMarker : public DummyBase<DocumentMarker> { | 38 class DocumentMarker { |
| 39 public: | 39 public: |
| 40 enum MarkerTypeIndex { | 40 enum MarkerTypeIndex { |
| 41 SpellingMarkerIndex = 0, | 41 SpellingMarkerIndex = 0, |
| 42 GramarMarkerIndex, | 42 GramarMarkerIndex, |
| 43 TextMatchMarkerIndex, | 43 TextMatchMarkerIndex, |
| 44 InvisibleSpellcheckMarkerIndex, | 44 InvisibleSpellcheckMarkerIndex, |
| 45 MarkerTypeIndexesCount | 45 MarkerTypeIndexesCount |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 enum MarkerType { | 48 enum MarkerType { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 virtual ~DocumentMarkerDetails(); | 152 virtual ~DocumentMarkerDetails(); |
| 153 virtual bool isDescription() const { return false; } | 153 virtual bool isDescription() const { return false; } |
| 154 virtual bool isTextMatch() const { return false; } | 154 virtual bool isTextMatch() const { return false; } |
| 155 | 155 |
| 156 virtual void trace(Visitor*) { } | 156 virtual void trace(Visitor*) { } |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| 160 | 160 |
| 161 #endif // DocumentMarker_h | 161 #endif // DocumentMarker_h |
| OLD | NEW |