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

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

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Uploading the latest version from my repo so I can reference it Created 3 years, 8 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 #include "content/browser/android/text_suggestion_host_impl.h"
6
7 #include "content/browser/android/ime_adapter_android.h"
8 #include "mojo/public/cpp/bindings/strong_binding.h"
9
10 namespace content {
11
12 TextSuggestionHostImpl::TextSuggestionHostImpl(
13 ImeAdapterAndroid* imeAdapterAndroid)
14 : m_imeAdapterAndroid(imeAdapterAndroid) {}
15
16 // static
17 void TextSuggestionHostImpl::create(
18 ImeAdapterAndroid* imeAdapterAndroid,
19 blink::mojom::TextSuggestionHostRequest request) {
20 mojo::MakeStrongBinding(
21 base::MakeUnique<TextSuggestionHostImpl>(imeAdapterAndroid),
22 std::move(request));
23 }
24
25 void TextSuggestionHostImpl::ShowTextSuggestionMenu(
26 std::vector<blink::mojom::TextSuggestionInfoPtr> suggestionInfos) {
27 m_imeAdapterAndroid->ShowTextSuggestionMenu(suggestionInfos);
28 }
29
30 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/text_suggestion_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698