Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |