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

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

Issue 2770413003: Add SpellCheckMarkerList in preparation for DocumentMarkerController refactor (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SpellCheckMarkerList_h
6 #define SpellCheckMarkerList_h
7
8 #include "core/editing/markers/EditingMarkerList.h"
9
10 namespace blink {
11
12 class CORE_EXPORT SpellCheckMarkerList final : public EditingMarkerList {
13 public:
14 explicit SpellCheckMarkerList(DocumentMarker::MarkerType);
15
16 // DocumentMarkerList implementations
17 DocumentMarker::MarkerType allowedMarkerType() const final;
18 bool isSpellCheckMarkerList() const final;
19 void add(DocumentMarker*) final;
20
21 // SpellCheckMarkerList-specific
22 void removeMarkersForWords(const String& nodeText,
23 const Vector<String>& words);
24
25 private:
26 const DocumentMarker::MarkerType m_type;
27
28 DISALLOW_COPY_AND_ASSIGN(SpellCheckMarkerList);
29 };
30
31 DEFINE_TYPE_CASTS(SpellCheckMarkerList,
32 DocumentMarkerList,
33 list,
34 list->isSpellCheckMarkerList(),
35 list.isSpellCheckMarkerList());
36
37 } // namespace blink
38
39 #endif // SpellCheckMarkerList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698