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

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

Issue 728043002: Revert of 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 5efe763eedfec2d0466635e4dc85eff0234304fb..48e6dccd51eee190cdd763bfec6799b02812cc40 100644
--- a/ui/keyboard/webui/vk_mojo_handler.cc
+++ b/ui/keyboard/webui/vk_mojo_handler.cc
@@ -14,11 +14,8 @@
namespace keyboard {
-VKMojoHandler::VKMojoHandler(
- mojo::InterfaceRequest<KeyboardUIHandlerMojo> request)
- : binding_(this, request.Pass()) {
+VKMojoHandler::VKMojoHandler() {
GetInputMethod()->AddObserver(this);
- OnTextInputStateChanged(GetInputMethod()->GetTextInputClient());
}
VKMojoHandler::~VKMojoHandler() {
@@ -27,6 +24,10 @@
ui::InputMethod* VKMojoHandler::GetInputMethod() {
return KeyboardController::GetInstance()->proxy()->GetInputMethod();
+}
+
+void VKMojoHandler::OnConnectionEstablished() {
+ OnTextInputStateChanged(GetInputMethod()->GetTextInputClient());
}
void VKMojoHandler::SendKeyEvent(const mojo::String& event_type,
@@ -106,7 +107,7 @@
type_name = "text";
break;
}
- binding_.client()->OnTextInputTypeChanged(type_name);
+ 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