Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: Source/core/dom/DocumentMarker.h

Issue 1074703002: Componentization: make core/dom visible for blink_web and blink_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/DocumentLifecycleObserver.h ('k') | Source/core/dom/DocumentMarkerController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core/CoreExport.h"
26 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
27 #include "wtf/VectorTraits.h" 28 #include "wtf/VectorTraits.h"
28 #include "wtf/text/WTFString.h" 29 #include "wtf/text/WTFString.h"
29 30
30 namespace blink { 31 namespace blink {
31 32
32 class DocumentMarkerDetails; 33 class DocumentMarkerDetails;
33 34
34 // 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.
35 // 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.
36 // 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
37 // for all types other than type TextMatch. 38 // for all types other than type TextMatch.
38 class DocumentMarker : public NoBaseWillBeGarbageCollected<DocumentMarker> { 39 class CORE_EXPORT DocumentMarker : public NoBaseWillBeGarbageCollected<DocumentM arker> {
39 public: 40 public:
40 enum MarkerTypeIndex { 41 enum MarkerTypeIndex {
41 SpellingMarkerIndex = 0, 42 SpellingMarkerIndex = 0,
42 GramarMarkerIndex, 43 GramarMarkerIndex,
43 TextMatchMarkerIndex, 44 TextMatchMarkerIndex,
44 InvisibleSpellcheckMarkerIndex, 45 InvisibleSpellcheckMarkerIndex,
45 MarkerTypeIndexesCount 46 MarkerTypeIndexesCount
46 }; 47 };
47 48
48 enum MarkerType { 49 enum MarkerType {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 DEFINE_INLINE_VIRTUAL_TRACE() { } 153 DEFINE_INLINE_VIRTUAL_TRACE() { }
153 }; 154 };
154 155
155 } // namespace blink 156 } // namespace blink
156 157
157 #endif // DocumentMarker_h 158 #endif // DocumentMarker_h
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentLifecycleObserver.h ('k') | Source/core/dom/DocumentMarkerController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698