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