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

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

Issue 2764783004: Add DocumentMarker::createTextMatchMarker() (Closed)
Patch Set: Rebase Created 3 years, 9 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 class SpellCheckClientMarkers : public MarkerTypes { 132 class SpellCheckClientMarkers : public MarkerTypes {
133 public: 133 public:
134 SpellCheckClientMarkers() : MarkerTypes(Spelling | Grammar) {} 134 SpellCheckClientMarkers() : MarkerTypes(Spelling | Grammar) {}
135 }; 135 };
136 136
137 static DocumentMarker* createCompositionMarker(unsigned startOffset, 137 static DocumentMarker* createCompositionMarker(unsigned startOffset,
138 unsigned endOffset, 138 unsigned endOffset,
139 Color underlineColor, 139 Color underlineColor,
140 bool thick, 140 bool thick,
141 Color backgroundColor); 141 Color backgroundColor);
142 static DocumentMarker* createTextMatchMarker(unsigned startOffset,
143 unsigned endOffset,
144 bool activeMatch);
142 145
143 DocumentMarker(MarkerType, 146 DocumentMarker(MarkerType,
144 unsigned startOffset, 147 unsigned startOffset,
145 unsigned endOffset, 148 unsigned endOffset,
146 const String& description); 149 const String& description);
147 DocumentMarker(unsigned startOffset, unsigned endOffset, bool activeMatch);
148 150
149 DocumentMarker(const DocumentMarker&); 151 DocumentMarker(const DocumentMarker&);
150 152
151 MarkerType type() const { return m_type; } 153 MarkerType type() const { return m_type; }
152 unsigned startOffset() const { return m_startOffset; } 154 unsigned startOffset() const { return m_startOffset; }
153 unsigned endOffset() const { return m_endOffset; } 155 unsigned endOffset() const { return m_endOffset; }
154 156
155 const String& description() const; 157 const String& description() const;
156 bool activeMatch() const; 158 bool activeMatch() const;
157 Color underlineColor() const; 159 Color underlineColor() const;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 virtual bool isDescription() const { return false; } 216 virtual bool isDescription() const { return false; }
215 virtual bool isTextMatch() const { return false; } 217 virtual bool isTextMatch() const { return false; }
216 virtual bool isComposition() const { return false; } 218 virtual bool isComposition() const { return false; }
217 219
218 DEFINE_INLINE_VIRTUAL_TRACE() {} 220 DEFINE_INLINE_VIRTUAL_TRACE() {}
219 }; 221 };
220 222
221 } // namespace blink 223 } // namespace blink
222 224
223 #endif // DocumentMarker_h 225 #endif // DocumentMarker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698