diff options
Diffstat (limited to 'remoting/host/input_injector_linux.cc')
-rw-r--r-- | remoting/host/input_injector_linux.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/remoting/host/input_injector_linux.cc b/remoting/host/input_injector_linux.cc index f6f80a2..c9763b2 100644 --- a/remoting/host/input_injector_linux.cc +++ b/remoting/host/input_injector_linux.cc @@ -27,6 +27,7 @@ namespace { using protocol::ClipboardEvent; using protocol::KeyEvent; +using protocol::TextEvent; using protocol::MouseEvent; // Pixel-to-wheel-ticks conversion ratio used by GTK. @@ -47,6 +48,7 @@ class InputInjectorLinux : public InputInjector { // InputStub interface. virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE; + virtual void InjectTextEvent(const TextEvent& event) OVERRIDE; virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE; // InputInjector interface. @@ -66,6 +68,7 @@ class InputInjectorLinux : public InputInjector { // Mirrors the InputStub interface. void InjectKeyEvent(const KeyEvent& event); + void InjectTextEvent(const TextEvent& event); void InjectMouseEvent(const MouseEvent& event); // Mirrors the InputInjector interface. @@ -148,6 +151,10 @@ void InputInjectorLinux::InjectKeyEvent(const KeyEvent& event) { core_->InjectKeyEvent(event); } +void InputInjectorLinux::InjectTextEvent(const TextEvent& event) { + core_->InjectTextEvent(event); +} + void InputInjectorLinux::InjectMouseEvent(const MouseEvent& event) { core_->InjectMouseEvent(event); } @@ -253,6 +260,10 @@ void InputInjectorLinux::Core::InjectKeyEvent(const KeyEvent& event) { XFlush(display_); } +void InputInjectorLinux::Core::InjectTextEvent(const TextEvent& event) { + NOTIMPLEMENTED(); +} + InputInjectorLinux::Core::~Core() { CHECK(pressed_keys_.empty()); } |