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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarker.h

Issue 1686263007: Tidy GrammarMarkerIndex spelling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp » ('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 *
(...skipping 23 matching lines...) Expand all
34 class DocumentMarkerDetails; 34 class DocumentMarkerDetails;
35 35
36 // 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.
37 // 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.
38 // 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
39 // for all types other than type TextMatch. 39 // for all types other than type TextMatch.
40 class CORE_EXPORT DocumentMarker : public NoBaseWillBeGarbageCollected<DocumentM arker> { 40 class CORE_EXPORT DocumentMarker : public NoBaseWillBeGarbageCollected<DocumentM arker> {
41 public: 41 public:
42 enum MarkerTypeIndex { 42 enum MarkerTypeIndex {
43 SpellingMarkerIndex = 0, 43 SpellingMarkerIndex = 0,
44 GramarMarkerIndex, 44 GrammarMarkerIndex,
45 TextMatchMarkerIndex, 45 TextMatchMarkerIndex,
46 InvisibleSpellcheckMarkerIndex, 46 InvisibleSpellcheckMarkerIndex,
47 CompositionMarkerIndex, 47 CompositionMarkerIndex,
48 MarkerTypeIndexesCount 48 MarkerTypeIndexesCount
49 }; 49 };
50 50
51 enum MarkerType { 51 enum MarkerType {
52 Spelling = 1 << SpellingMarkerIndex, 52 Spelling = 1 << SpellingMarkerIndex,
53 Grammar = 1 << GramarMarkerIndex, 53 Grammar = 1 << GrammarMarkerIndex,
54 TextMatch = 1 << TextMatchMarkerIndex, 54 TextMatch = 1 << TextMatchMarkerIndex,
55 InvisibleSpellcheck = 1 << InvisibleSpellcheckMarkerIndex, 55 InvisibleSpellcheck = 1 << InvisibleSpellcheckMarkerIndex,
56 Composition = 1 << CompositionMarkerIndex, 56 Composition = 1 << CompositionMarkerIndex,
57 }; 57 };
58 58
59 class MarkerTypes { 59 class MarkerTypes {
60 public: 60 public:
61 // The constructor is intentionally implicit to allow conversion from th e bit-wise sum of above types 61 // The constructor is intentionally implicit to allow conversion from th e bit-wise sum of above types
62 MarkerTypes(unsigned mask) : m_mask(mask) { } 62 MarkerTypes(unsigned mask) : m_mask(mask) { }
63 63
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 virtual bool isDescription() const { return false; } 157 virtual bool isDescription() const { return false; }
158 virtual bool isTextMatch() const { return false; } 158 virtual bool isTextMatch() const { return false; }
159 virtual bool isComposition() const { return false; } 159 virtual bool isComposition() const { return false; }
160 160
161 DEFINE_INLINE_VIRTUAL_TRACE() { } 161 DEFINE_INLINE_VIRTUAL_TRACE() { }
162 }; 162 };
163 163
164 } // namespace blink 164 } // namespace blink
165 165
166 #endif // DocumentMarker_h 166 #endif // DocumentMarker_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698