Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: content/browser/android/text_suggestion_host_impl.h

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Fix dependency Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_H_
6 #define TEXT_SUGGESTION_HOST_IMPL_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 ImeAdapterAndroid;
17
18 // Android implementation of mojom::TextSuggestionHost.
19 class TextSuggestionHostImpl final : public blink::mojom::TextSuggestionHost {
20 public:
21 explicit TextSuggestionHostImpl(ImeAdapterAndroid*);
22
23 static void Create(ImeAdapterAndroid*,
24 const service_manager::BindSourceInfo& source_info,
25 blink::mojom::TextSuggestionHostRequest request);
26
27 void StartSpellCheckMenuTimer() final;
28
29 void ShowSpellCheckSuggestionMenu(
30 double caret_x,
31 double caret_y,
32 const std::string& marked_text,
33 std::vector<blink::mojom::SpellCheckSuggestionPtr> suggestions) final;
34
35 private:
36 ImeAdapterAndroid* const ime_adapter_android_;
37
38 DISALLOW_COPY_AND_ASSIGN(TextSuggestionHostImpl);
39 };
40
41 } // namespace content
42
43 #endif // TEXT_SUGGESTION_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698