Chromium Code Reviews| 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/text/WTFString.h" | 29 #include "wtf/text/WTFString.h" |
| 30 | 30 |
|
sof
2014/05/19 07:05:24
nit: add #include "wtf/VectorTraits.h"?
Erik Corry
2014/05/19 07:52:11
Done.
| |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 class DocumentMarkerDetails; | 33 class DocumentMarkerDetails; |
| 34 | 34 |
| 35 // A range of a node within a document that is "marked", such as the range of a misspelled word. | 35 // 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. | 36 // 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 | 37 // It also optionally includes a flag specifying whether the match is active, wh ich is ignored |
| 38 // for all types other than type TextMatch. | 38 // for all types other than type TextMatch. |
| 39 class DocumentMarker { | 39 class DocumentMarker { |
| 40 public: | 40 public: |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 { | 145 { |
| 146 public: | 146 public: |
| 147 DocumentMarkerDetails() { } | 147 DocumentMarkerDetails() { } |
| 148 virtual ~DocumentMarkerDetails(); | 148 virtual ~DocumentMarkerDetails(); |
| 149 virtual bool isDescription() const { return false; } | 149 virtual bool isDescription() const { return false; } |
| 150 virtual bool isTextMatch() const { return false; } | 150 virtual bool isTextMatch() const { return false; } |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace WebCore | 153 } // namespace WebCore |
| 154 | 154 |
| 155 namespace WTF { | |
| 156 | |
| 157 template<> | |
| 158 struct VectorTraits<WebCore::DocumentMarker> : SimpleClassVectorTraits<WebCore:: DocumentMarker> { }; | |
| 159 | |
| 160 } // namespace WTF | |
| 161 | |
| 155 #endif // DocumentMarker_h | 162 #endif // DocumentMarker_h |
| OLD | NEW |