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

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: Add DCHECK that markers being inserted are of correct type 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
(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 Text;
13
14 class CORE_EXPORT SpellCheckMarkerList : public EditingMarkerList {
yosin_UTC9 2017/03/27 05:02:50 nit: Please mark this class |final|
15 public:
16 explicit SpellCheckMarkerList(DocumentMarker::MarkerType);
17
18 // DocumentMarkerList implementations
19 DocumentMarker::MarkerType allowedMarkerType() const final;
yosin_UTC9 2017/03/27 05:02:51 nit: interface implementations should be in |priva
rlanday 2017/03/27 21:59:24 Sorry, I don't understand what you mean here; thes
Xiaocheng 2017/03/27 22:08:24 In most cases, subclasses put overridden functions
20 bool isSpellCheckMarkerList() const final;
21 void push_back(DocumentMarker*) final;
22
23 // SpellCheckMarkerList-specific
24 void removeMarkersForWords(const Text& textNode, const Vector<String>& words);
25
26 private:
27 DocumentMarker::MarkerType m_type;
yosin_UTC9 2017/03/27 05:02:51 nit: s/DocumentMarker::MarkerType/const DocumentMa
28
29 DISALLOW_COPY_AND_ASSIGN(SpellCheckMarkerList);
30 };
31
32 DEFINE_TYPE_CASTS(SpellCheckMarkerList,
33 DocumentMarkerList,
34 list,
35 list->isSpellCheckMarkerList(),
36 list.isSpellCheckMarkerList());
37
38 } // namespace blink
39
40 #endif // SpellCheckMarkerList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698