Index: ui/keyboard/webui/vk_mojo_handler.h |
diff --git a/ui/keyboard/webui/vk_mojo_handler.h b/ui/keyboard/webui/vk_mojo_handler.h |
index 5a25abd9df3086784d879ef0ad5e823a79bd536f..8d69d1500f224f912fe2ef6139dbd8f5a29ee8be 100644 |
--- a/ui/keyboard/webui/vk_mojo_handler.h |
+++ b/ui/keyboard/webui/vk_mojo_handler.h |
@@ -6,23 +6,21 @@ |
#define UI_KEYBOARD_WEBUI_VK_MOJO_HANDLER_H_ |
#include "base/macros.h" |
+#include "mojo/public/cpp/bindings/binding.h" |
#include "ui/base/ime/input_method_observer.h" |
#include "ui/keyboard/webui/keyboard.mojom.h" |
namespace keyboard { |
-class VKMojoHandler : public mojo::InterfaceImpl<KeyboardUIHandlerMojo>, |
+class VKMojoHandler : public KeyboardUIHandlerMojo, |
public ui::InputMethodObserver { |
public: |
- VKMojoHandler(); |
+ explicit VKMojoHandler(mojo::InterfaceRequest<KeyboardUIHandlerMojo> request); |
~VKMojoHandler() override; |
private: |
ui::InputMethod* GetInputMethod(); |
- // mojo::InterfaceImpl<>: |
- void OnConnectionEstablished() override; |
- |
// KeyboardUIHandlerMojo: |
void SendKeyEvent(const mojo::String& event_type, |
int32_t char_value, |
@@ -40,6 +38,8 @@ class VKMojoHandler : public mojo::InterfaceImpl<KeyboardUIHandlerMojo>, |
void OnInputMethodDestroyed(const ui::InputMethod* input_method) override; |
void OnShowImeIfNeeded() override; |
+ mojo::Binding<KeyboardUIHandlerMojo> binding_; |
+ |
DISALLOW_COPY_AND_ASSIGN(VKMojoHandler); |
}; |