| 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(
|
|
|