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

Unified Diff: ui/keyboard/webui/vk_mojo_handler.cc

Issue 728553002: Update mojo sdk to rev afb4440fd5a10cba980878c326180b7ad7960480 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « ui/keyboard/webui/vk_mojo_handler.h ('k') | ui/keyboard/webui/vk_webui_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/webui/vk_mojo_handler.cc
diff --git a/ui/keyboard/webui/vk_mojo_handler.cc b/ui/keyboard/webui/vk_mojo_handler.cc
index 48e6dccd51eee190cdd763bfec6799b02812cc40..5efe763eedfec2d0466635e4dc85eff0234304fb 100644
--- a/ui/keyboard/webui/vk_mojo_handler.cc
+++ b/ui/keyboard/webui/vk_mojo_handler.cc
@@ -14,8 +14,11 @@
namespace keyboard {
-VKMojoHandler::VKMojoHandler() {
+VKMojoHandler::VKMojoHandler(
+ mojo::InterfaceRequest<KeyboardUIHandlerMojo> request)
+ : binding_(this, request.Pass()) {
GetInputMethod()->AddObserver(this);
+ OnTextInputStateChanged(GetInputMethod()->GetTextInputClient());
}
VKMojoHandler::~VKMojoHandler() {
@@ -26,10 +29,6 @@ ui::InputMethod* VKMojoHandler::GetInputMethod() {
return KeyboardController::GetInstance()->proxy()->GetInputMethod();
}
-void VKMojoHandler::OnConnectionEstablished() {
- OnTextInputStateChanged(GetInputMethod()->GetTextInputClient());
-}
-
void VKMojoHandler::SendKeyEvent(const mojo::String& event_type,
int32_t char_value,
int32_t key_code,
@@ -107,7 +106,7 @@ void VKMojoHandler::OnTextInputStateChanged(
type_name = "text";
break;
}
- client()->OnTextInputTypeChanged(type_name);
+ binding_.client()->OnTextInputTypeChanged(type_name);
}
void VKMojoHandler::OnInputMethodDestroyed(
« no previous file with comments | « ui/keyboard/webui/vk_mojo_handler.h ('k') | ui/keyboard/webui/vk_webui_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698