OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_ANDROID_TEXT_SUGGESTION_HOST_MOJO_IMPL_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_TEXT_SUGGESTION_HOST_MOJO_IMPL_ANDROID_H_ |
| 7 |
| 8 #include "third_party/WebKit/public/platform/input_host.mojom.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class TextSuggestionHostAndroid; |
| 13 |
| 14 // Android implementation of mojom::TextSuggestionHost. |
| 15 class TextSuggestionHostMojoImplAndroid final |
| 16 : public blink::mojom::TextSuggestionHost { |
| 17 public: |
| 18 explicit TextSuggestionHostMojoImplAndroid(TextSuggestionHostAndroid*); |
| 19 |
| 20 static void Create(TextSuggestionHostAndroid*, |
| 21 blink::mojom::TextSuggestionHostRequest request); |
| 22 |
| 23 void StartSpellCheckMenuTimer() final; |
| 24 |
| 25 void ShowSpellCheckSuggestionMenu( |
| 26 double caret_x, |
| 27 double caret_y, |
| 28 const std::string& marked_text, |
| 29 std::vector<blink::mojom::SpellCheckSuggestionPtr> suggestions) final; |
| 30 |
| 31 private: |
| 32 TextSuggestionHostAndroid* const text_suggestion_host_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(TextSuggestionHostMojoImplAndroid); |
| 35 }; |
| 36 |
| 37 } // namespace content |
| 38 |
| 39 #endif // CONTENT_BROWSER_ANDROID_TEXT_SUGGESTION_HOST_MOJO_IMPL_ANDROID_H_ |
OLD | NEW |