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

Unified Diff: third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h

Issue 2911723002: [DMC #24] Add SpellingMarker and GrammarMarker (subclasses of DocumentMarker) (Closed)
Patch Set: Remove declaration for DocumentMarker constructor being removed Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698