| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class AllMarkers : public MarkerTypes { | 63 class AllMarkers : public MarkerTypes { |
| 64 public: | 64 public: |
| 65 AllMarkers() | 65 AllMarkers() |
| 66 : MarkerTypes(Spelling | Grammar | TextMatch) | 66 : MarkerTypes(Spelling | Grammar | TextMatch) |
| 67 { | 67 { |
| 68 } | 68 } |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 class MisspellingMarkers : public MarkerTypes { |
| 72 public: |
| 73 MisspellingMarkers() |
| 74 : MarkerTypes(Spelling | Grammar) |
| 75 { |
| 76 } |
| 77 }; |
| 78 |
| 71 DocumentMarker(); | 79 DocumentMarker(); |
| 72 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset); | 80 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset); |
| 73 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, const S
tring& description); | 81 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, const S
tring& description); |
| 74 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, const S
tring& description, uint32_t hash); | 82 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, const S
tring& description, uint32_t hash); |
| 75 DocumentMarker(unsigned startOffset, unsigned endOffset, bool activeMatch); | 83 DocumentMarker(unsigned startOffset, unsigned endOffset, bool activeMatch); |
| 76 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, PassRef
Ptr<DocumentMarkerDetails>); | 84 DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset, PassRef
Ptr<DocumentMarkerDetails>); |
| 77 | 85 |
| 78 MarkerType type() const { return m_type; } | 86 MarkerType type() const { return m_type; } |
| 79 unsigned startOffset() const { return m_startOffset; } | 87 unsigned startOffset() const { return m_startOffset; } |
| 80 unsigned endOffset() const { return m_endOffset; } | 88 unsigned endOffset() const { return m_endOffset; } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 public: | 129 public: |
| 122 DocumentMarkerDetails() { } | 130 DocumentMarkerDetails() { } |
| 123 virtual ~DocumentMarkerDetails(); | 131 virtual ~DocumentMarkerDetails(); |
| 124 virtual bool isDescription() const { return false; } | 132 virtual bool isDescription() const { return false; } |
| 125 virtual bool isTextMatch() const { return false; } | 133 virtual bool isTextMatch() const { return false; } |
| 126 }; | 134 }; |
| 127 | 135 |
| 128 } // namespace WebCore | 136 } // namespace WebCore |
| 129 | 137 |
| 130 #endif // DocumentMarker_h | 138 #endif // DocumentMarker_h |
| OLD | NEW |