Index: content/browser/android/text_suggestion_host_mojo_impl_android.h |
diff --git a/content/browser/android/text_suggestion_host_mojo_impl_android.h b/content/browser/android/text_suggestion_host_mojo_impl_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..96fadd82ae7c126d2ee908f4bfe11262ef38fd69 |
--- /dev/null |
+++ b/content/browser/android/text_suggestion_host_mojo_impl_android.h |
@@ -0,0 +1,44 @@ |
+// 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_ANDROID_H_ |
aelias_OOO_until_Jul13
2017/06/20 02:55:03
nit: standard format for this encodes the full pat
|
+#define TEXT_SUGGESTION_HOST_IMPL_ANDROID_H_ |
+ |
+#include "third_party/WebKit/public/platform/input_host.mojom.h" |
+ |
+namespace service_manager { |
+struct BindSourceInfo; |
+} |
+ |
+namespace content { |
+ |
+class TextSuggestionHostAndroid; |
+ |
+// Android implementation of mojom::TextSuggestionHost. |
+class TextSuggestionHostMojoImplAndroid final |
+ : public blink::mojom::TextSuggestionHost { |
+ public: |
+ explicit TextSuggestionHostMojoImplAndroid(TextSuggestionHostAndroid*); |
+ |
+ static void Create(TextSuggestionHostAndroid*, |
+ const service_manager::BindSourceInfo& source_info, |
+ blink::mojom::TextSuggestionHostRequest request); |
+ |
+ void StartSpellCheckMenuTimer() final; |
+ |
+ void ShowSpellCheckSuggestionMenu( |
+ double caret_x, |
+ double caret_y, |
+ const std::string& marked_text, |
+ std::vector<blink::mojom::SpellCheckSuggestionPtr> suggestions) final; |
+ |
+ private: |
+ TextSuggestionHostAndroid* const text_suggestion_host_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TextSuggestionHostMojoImplAndroid); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // TEXT_SUGGESTION_HOST_IMPL_ANDROID_H_ |