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 * |
11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
20 * | 20 * |
21 */ | 21 */ |
22 | 22 |
23 #ifndef DocumentMarker_h | 23 #ifndef DocumentMarker_h |
24 #define DocumentMarker_h | 24 #define DocumentMarker_h |
25 | 25 |
26 #include "wtf/Forward.h" | 26 #include "wtf/Forward.h" |
27 #include "wtf/RefCounted.h" | 27 #include "wtf/RefCounted.h" |
28 #include "wtf/RefPtr.h" | 28 #include "wtf/RefPtr.h" |
| 29 #include "wtf/VectorTraits.h" |
29 #include "wtf/text/WTFString.h" | 30 #include "wtf/text/WTFString.h" |
30 | 31 |
31 namespace WebCore { | 32 namespace WebCore { |
32 | 33 |
33 class DocumentMarkerDetails; | 34 class DocumentMarkerDetails; |
34 | 35 |
35 // 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. |
36 // 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. |
37 // 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 |
38 // for all types other than type TextMatch. | 39 // for all types other than type TextMatch. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 { | 146 { |
146 public: | 147 public: |
147 DocumentMarkerDetails() { } | 148 DocumentMarkerDetails() { } |
148 virtual ~DocumentMarkerDetails(); | 149 virtual ~DocumentMarkerDetails(); |
149 virtual bool isDescription() const { return false; } | 150 virtual bool isDescription() const { return false; } |
150 virtual bool isTextMatch() const { return false; } | 151 virtual bool isTextMatch() const { return false; } |
151 }; | 152 }; |
152 | 153 |
153 } // namespace WebCore | 154 } // namespace WebCore |
154 | 155 |
| 156 namespace WTF { |
| 157 |
| 158 template<> |
| 159 struct VectorTraits<WebCore::DocumentMarker> : SimpleClassVectorTraits<WebCore::
DocumentMarker> { }; |
| 160 |
| 161 } // namespace WTF |
| 162 |
155 #endif // DocumentMarker_h | 163 #endif // DocumentMarker_h |
OLD | NEW |