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

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

Issue 2923033002: [ActiveSuggestionMarker #2] Add ActiveSuggestionMarker (Closed)
Patch Set: Update comment on ActiveSuggestionMarker.h Created 3 years, 6 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
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 25 matching lines...) Expand all
36 // misspelled word. It optionally includes a description that could be displayed 36 // misspelled word. It optionally includes a description that could be displayed
37 // in the user interface. 37 // in the user interface.
38 class CORE_EXPORT DocumentMarker 38 class CORE_EXPORT DocumentMarker
39 : public GarbageCollectedFinalized<DocumentMarker> { 39 : public GarbageCollectedFinalized<DocumentMarker> {
40 public: 40 public:
41 enum MarkerTypeIndex { 41 enum MarkerTypeIndex {
42 kSpellingMarkerIndex = 0, 42 kSpellingMarkerIndex = 0,
43 kGrammarMarkerIndex, 43 kGrammarMarkerIndex,
44 kTextMatchMarkerIndex, 44 kTextMatchMarkerIndex,
45 kCompositionMarkerIndex, 45 kCompositionMarkerIndex,
46 kActiveSuggestionMarkerIndex,
46 kMarkerTypeIndexesCount 47 kMarkerTypeIndexesCount
47 }; 48 };
48 49
49 enum MarkerType { 50 enum MarkerType {
50 kSpelling = 1 << kSpellingMarkerIndex, 51 kSpelling = 1 << kSpellingMarkerIndex,
51 kGrammar = 1 << kGrammarMarkerIndex, 52 kGrammar = 1 << kGrammarMarkerIndex,
52 kTextMatch = 1 << kTextMatchMarkerIndex, 53 kTextMatch = 1 << kTextMatchMarkerIndex,
53 kComposition = 1 << kCompositionMarkerIndex, 54 kComposition = 1 << kCompositionMarkerIndex,
55 kActiveSuggestion = 1 << kActiveSuggestionMarkerIndex,
54 }; 56 };
55 57
56 class MarkerTypesIterator 58 class MarkerTypesIterator
57 : public std::iterator<std::forward_iterator_tag, MarkerType> { 59 : public std::iterator<std::forward_iterator_tag, MarkerType> {
58 public: 60 public:
59 explicit MarkerTypesIterator(unsigned marker_types) 61 explicit MarkerTypesIterator(unsigned marker_types)
60 : remaining_types_(marker_types) {} 62 : remaining_types_(marker_types) {}
61 MarkerTypesIterator(const MarkerTypesIterator& other) = default; 63 MarkerTypesIterator(const MarkerTypesIterator& other) = default;
62 64
63 bool operator==(const MarkerTypesIterator& other) { 65 bool operator==(const MarkerTypesIterator& other) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 unsigned end_offset_; 160 unsigned end_offset_;
159 161
160 DISALLOW_COPY_AND_ASSIGN(DocumentMarker); 162 DISALLOW_COPY_AND_ASSIGN(DocumentMarker);
161 }; 163 };
162 164
163 using DocumentMarkerVector = HeapVector<Member<DocumentMarker>>; 165 using DocumentMarkerVector = HeapVector<Member<DocumentMarker>>;
164 166
165 } // namespace blink 167 } // namespace blink
166 168
167 #endif // DocumentMarker_h 169 #endif // DocumentMarker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698