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

Unified Diff: chrome/browser/ui/views/ime_driver/ime_driver_mus.cc

Issue 2626983003: IME for Mus: Send TextInputClient information to IMEDriver. (Closed)
Patch Set: fix mojo dependencies. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/ime_driver/ime_driver_mus.cc
diff --git a/chrome/browser/ui/views/ime_driver/ime_driver_mus.cc b/chrome/browser/ui/views/ime_driver/ime_driver_mus.cc
index 5ce2fb3abc9ebf62adb7013907bc7e3147cded37..a4e267ed598118ab209c7de5e88c6f27a6763a23 100644
--- a/chrome/browser/ui/views/ime_driver/ime_driver_mus.cc
+++ b/chrome/browser/ui/views/ime_driver/ime_driver_mus.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/views/ime_driver/ime_driver_mus.h"
#include "base/memory/ptr_util.h"
+#include "chrome/browser/ui/views/ime_driver/remote_text_input_client.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/service_manager_connection.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -38,15 +39,18 @@ void IMEDriver::Register() {
ime_registrar->RegisterDriver(std::move(ime_driver_ptr));
}
-void IMEDriver::StartSession(
- int32_t session_id,
- ui::mojom::TextInputClientPtr client,
- ui::mojom::InputMethodRequest input_method_request) {
+void IMEDriver::StartSession(int32_t session_id,
+ ui::mojom::StartSessionDetailsPtr details) {
#if defined(OS_CHROMEOS)
+ std::unique_ptr<RemoteTextInputClient> remote_client =
+ base::MakeUnique<RemoteTextInputClient>(
+ std::move(details->client), details->text_input_type,
+ details->text_input_mode, details->text_direction,
+ details->text_input_flags, details->caret_bounds);
input_method_bindings_[session_id] =
base::MakeUnique<mojo::Binding<ui::mojom::InputMethod>>(
- new InputMethodBridge(std::move(client)),
- std::move(input_method_request));
+ new InputMethodBridge(std::move(remote_client)),
+ std::move(details->input_method_request));
#else
input_method_bindings_[session_id] =
base::MakeUnique<mojo::Binding<ui::mojom::InputMethod>>(
« no previous file with comments | « chrome/browser/ui/views/ime_driver/ime_driver_mus.h ('k') | chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698