Index: content/browser/android/text_suggestion_host_impl.h |
diff --git a/content/browser/android/text_suggestion_host_impl.h b/content/browser/android/text_suggestion_host_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f3f8adba04f4a1598a24f35d29748df6c3e5f6c7 |
--- /dev/null |
+++ b/content/browser/android/text_suggestion_host_impl.h |
@@ -0,0 +1,43 @@ |
+// 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 TEXT_SUGGESTION_HOST_IMPL_H_ |
+#define TEXT_SUGGESTION_HOST_IMPL_H_ |
+ |
+#include "third_party/WebKit/public/platform/input_host.mojom.h" |
+ |
+namespace service_manager { |
+struct BindSourceInfo; |
+} |
+ |
+namespace content { |
+ |
+class ImeAdapterAndroid; |
+ |
+// Android implementation of mojom::TextSuggestionHost. |
+class TextSuggestionHostImpl final : public blink::mojom::TextSuggestionHost { |
+ public: |
+ explicit TextSuggestionHostImpl(ImeAdapterAndroid*); |
+ |
+ static void Create(ImeAdapterAndroid*, |
+ const service_manager::BindSourceInfo& source_info, |
+ blink::mojom::TextSuggestionHostRequest request); |
+ |
+ void StartSpellCheckMenuTimer(); |
+ |
+ void ShowSpellCheckSuggestionMenu( |
+ double caret_x, |
+ double caret_y, |
+ const std::string& marked_text, |
+ std::vector<blink::mojom::SpellCheckSuggestionPtr> suggestions) override; |
+ |
+ private: |
+ ImeAdapterAndroid* const ime_adapter_android_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TextSuggestionHostImpl); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // TEXT_SUGGESTION_HOST_IMPL_H_ |