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 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 |
OLD | NEW |