| Index: content/browser/android/text_suggestion_host_impl.cc
|
| diff --git a/content/browser/android/text_suggestion_host_impl.cc b/content/browser/android/text_suggestion_host_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2a1697441efc01aaa540793248a86be815956e70
|
| --- /dev/null
|
| +++ b/content/browser/android/text_suggestion_host_impl.cc
|
| @@ -0,0 +1,30 @@
|
| +// 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.
|
| +
|
| +#include "content/browser/android/text_suggestion_host_impl.h"
|
| +
|
| +#include "content/browser/android/ime_adapter_android.h"
|
| +#include "mojo/public/cpp/bindings/strong_binding.h"
|
| +
|
| +namespace content {
|
| +
|
| +TextSuggestionHostImpl::TextSuggestionHostImpl(
|
| + ImeAdapterAndroid* imeAdapterAndroid)
|
| + : m_imeAdapterAndroid(imeAdapterAndroid) {}
|
| +
|
| +// static
|
| +void TextSuggestionHostImpl::create(
|
| + ImeAdapterAndroid* imeAdapterAndroid,
|
| + blink::mojom::TextSuggestionHostRequest request) {
|
| + mojo::MakeStrongBinding(
|
| + base::MakeUnique<TextSuggestionHostImpl>(imeAdapterAndroid),
|
| + std::move(request));
|
| +}
|
| +
|
| +void TextSuggestionHostImpl::ShowTextSuggestionMenu(
|
| + std::vector<blink::mojom::TextSuggestionInfoPtr> suggestionInfos) {
|
| + m_imeAdapterAndroid->ShowTextSuggestionMenu(suggestionInfos);
|
| +}
|
| +
|
| +} // namespace content
|
|
|