Index: third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h |
diff --git a/third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h b/third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..156883d6c506d3e5c358a44263f75d1a0838c155 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h |
@@ -0,0 +1,35 @@ |
+// 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 SpellCheckMarker_h |
+#define SpellCheckMarker_h |
+ |
+#include "core/editing/markers/DocumentMarker.h" |
+ |
+namespace blink { |
+ |
+class CORE_EXPORT SpellCheckMarker : public DocumentMarker { |
+ public: |
+ SpellCheckMarker(DocumentMarker::MarkerType, |
+ unsigned start_offset, |
+ unsigned end_offset, |
+ const String& description); |
+ |
+ const String& Description() const; |
+ |
+ private: |
+ String description_; |
yosin_UTC9
2017/05/29 05:13:48
nit: s/String/const String/
|
+}; |
+ |
+DEFINE_TYPE_CASTS(SpellCheckMarker, |
+ DocumentMarker, |
+ marker, |
+ marker->GetType() == DocumentMarker::kSpelling || |
+ marker->GetType() == DocumentMarker::kGrammar, |
+ marker.GetType() == DocumentMarker::kSpelling || |
+ marker.GetType() == DocumentMarker::kGrammar); |
+ |
+} // namespace blink |
+ |
+#endif |