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

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

Issue 2817783004: Simplify the construction of RemoteTextInputClient (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/ime_driver/remote_text_input_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ime_driver/remote_text_input_client.cc
diff --git a/chrome/browser/ui/views/ime_driver/remote_text_input_client.cc b/chrome/browser/ui/views/ime_driver/remote_text_input_client.cc
index 93b7ff266c34fc7c22c56d7039bd07329d247472..0c49edfd9dd90d761fda67a40df5ee9b720d6aab 100644
--- a/chrome/browser/ui/views/ime_driver/remote_text_input_client.cc
+++ b/chrome/browser/ui/views/ime_driver/remote_text_input_client.cc
@@ -12,18 +12,13 @@
#include "base/strings/utf_string_conversions.h"
RemoteTextInputClient::RemoteTextInputClient(
- ui::mojom::TextInputClientPtr remote_client,
- ui::TextInputType text_input_type,
- ui::TextInputMode text_input_mode,
- base::i18n::TextDirection text_direction,
- int text_input_flags,
- gfx::Rect caret_bounds)
- : remote_client_(std::move(remote_client)),
- text_input_type_(text_input_type),
- text_input_mode_(text_input_mode),
- text_direction_(text_direction),
- text_input_flags_(text_input_flags),
- caret_bounds_(caret_bounds) {}
+ ui::mojom::StartSessionDetailsPtr details)
+ : remote_client_(std::move(details->client)),
+ text_input_type_(details->text_input_type),
+ text_input_mode_(details->text_input_mode),
+ text_direction_(details->text_direction),
+ text_input_flags_(details->text_input_flags),
+ caret_bounds_(details->caret_bounds) {}
RemoteTextInputClient::~RemoteTextInputClient() {}
« no previous file with comments | « chrome/browser/ui/views/ime_driver/remote_text_input_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698