Chromium Code Reviews| 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 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
| |
| 6 #define TEXT_SUGGESTION_HOST_IMPL_ANDROID_H_ | |
| 7 | |
| 8 #include "third_party/WebKit/public/platform/input_host.mojom.h" | |
| 9 | |
| 10 namespace service_manager { | |
| 11 struct BindSourceInfo; | |
| 12 } | |
| 13 | |
| 14 namespace content { | |
| 15 | |
| 16 class TextSuggestionHostAndroid; | |
| 17 | |
| 18 // Android implementation of mojom::TextSuggestionHost. | |
| 19 class TextSuggestionHostMojoImplAndroid final | |
| 20 : public blink::mojom::TextSuggestionHost { | |
| 21 public: | |
| 22 explicit TextSuggestionHostMojoImplAndroid(TextSuggestionHostAndroid*); | |
| 23 | |
| 24 static void Create(TextSuggestionHostAndroid*, | |
| 25 const service_manager::BindSourceInfo& source_info, | |
| 26 blink::mojom::TextSuggestionHostRequest request); | |
| 27 | |
| 28 void StartSpellCheckMenuTimer() final; | |
| 29 | |
| 30 void ShowSpellCheckSuggestionMenu( | |
| 31 double caret_x, | |
| 32 double caret_y, | |
| 33 const std::string& marked_text, | |
| 34 std::vector<blink::mojom::SpellCheckSuggestionPtr> suggestions) final; | |
| 35 | |
| 36 private: | |
| 37 TextSuggestionHostAndroid* const text_suggestion_host_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(TextSuggestionHostMojoImplAndroid); | |
| 40 }; | |
| 41 | |
| 42 } // namespace content | |
| 43 | |
| 44 #endif // TEXT_SUGGESTION_HOST_IMPL_ANDROID_H_ | |
| OLD | NEW |