Index: third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerList.h |
diff --git a/third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerList.h b/third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerList.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0004ced3dc9518728ff7979a47f6efa78035963b |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerList.h |
@@ -0,0 +1,39 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef SpellCheckMarkerList_h |
+#define SpellCheckMarkerList_h |
+ |
+#include "core/editing/markers/EditingMarkerList.h" |
+ |
+namespace blink { |
+ |
+class CORE_EXPORT SpellCheckMarkerList final : public EditingMarkerList { |
+ public: |
+ explicit SpellCheckMarkerList(DocumentMarker::MarkerType); |
+ |
+ // DocumentMarkerList implementations |
+ DocumentMarker::MarkerType allowedMarkerType() const final; |
+ bool isSpellCheckMarkerList() const final; |
+ void add(DocumentMarker*) final; |
+ |
+ // SpellCheckMarkerList-specific |
+ void removeMarkersForWords(const String& nodeText, |
+ const Vector<String>& words); |
+ |
+ private: |
+ const DocumentMarker::MarkerType m_type; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SpellCheckMarkerList); |
+}; |
+ |
+DEFINE_TYPE_CASTS(SpellCheckMarkerList, |
+ DocumentMarkerList, |
+ list, |
+ list->isSpellCheckMarkerList(), |
+ list.isSpellCheckMarkerList()); |
+ |
+} // namespace blink |
+ |
+#endif // SpellCheckMarkerList_h |