Index: third_party/WebKit/Source/core/editing/suggestion/TextSuggestionBackendImpl.h |
diff --git a/third_party/WebKit/Source/core/editing/suggestion/TextSuggestionBackendImpl.h b/third_party/WebKit/Source/core/editing/suggestion/TextSuggestionBackendImpl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..19cf95c2326df510e7cf028f0b14014becd5b481 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/editing/suggestion/TextSuggestionBackendImpl.h |
@@ -0,0 +1,36 @@ |
+// 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 TextSuggestionBackendImpl_h |
+#define TextSuggestionBackendImpl_h |
+ |
+#include "core/CoreExport.h" |
+#include "platform/heap/Persistent.h" |
+#include "public/platform/input_messages.mojom-blink.h" |
+ |
+namespace blink { |
+ |
+class LocalFrame; |
+ |
+// Implementation of mojom::blink::TextSuggestionBackend |
+class CORE_EXPORT TextSuggestionBackendImpl final |
+ : public mojom::blink::TextSuggestionBackend { |
+ public: |
+ static void Create(LocalFrame*, mojom::blink::TextSuggestionBackendRequest); |
+ |
+ void ApplySpellCheckSuggestion(const String& suggestion) override; |
+ void DeleteActiveSuggestionRange() override; |
+ void NewWordAddedToDictionary(const String& word) override; |
+ void SpellCheckMenuTimeoutCallback() override; |
+ void SuggestionMenuClosed() override; |
+ |
+ private: |
+ explicit TextSuggestionBackendImpl(LocalFrame&); |
+ |
+ WeakPersistent<LocalFrame> frame_; |
+}; |
yosin_UTC9
2017/06/20 01:46:36
Can we have DISALLOW_COPY_AND_ASSIGN()?
|
+ |
+} // namespace blink |
+ |
+#endif // TextSuggestionBackendImpl_h |