Chromium Code Reviews| Index: remoting/host/event_executor_mac.cc |
| diff --git a/remoting/host/event_executor_mac.cc b/remoting/host/event_executor_mac.cc |
| index cb6583248df63b643acbd654cfea82aa0146b72b..fbe974249d99f12c4cb983fb979b96d522d0d950 100644 |
| --- a/remoting/host/event_executor_mac.cc |
| +++ b/remoting/host/event_executor_mac.cc |
| @@ -19,8 +19,9 @@ namespace remoting { |
| namespace { |
| -using protocol::MouseEvent; |
| +using protocol::ClipboardEvent; |
|
Sergey Ulanov
2012/03/14 20:27:07
nit: Don't need this.
simonmorris
2012/03/14 21:20:21
Done.
|
| using protocol::KeyEvent; |
| +using protocol::MouseEvent; |
| // A class to generate events on Mac. |
| class EventExecutorMac : public EventExecutor { |
| @@ -28,6 +29,7 @@ class EventExecutorMac : public EventExecutor { |
| EventExecutorMac(MessageLoop* message_loop, Capturer* capturer); |
| virtual ~EventExecutorMac() {} |
| + virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; |
| virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE; |
| virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE; |
| @@ -211,6 +213,10 @@ const int kUsVkeyToKeysym[256] = { |
| /* VKEY_NONAME */ -1, /* VKEY_PA1 */ -1, /* VKEY_OEM_CLEAR */ -1, -1 |
| }; |
| +void EventExecutorMac::InjectClipboardEvent(const ClipboardEvent& event) { |
| + // TODO(simonmorris): Implement clipboard injection. |
| +} |
| + |
| void EventExecutorMac::InjectKeyEvent(const KeyEvent& event) { |
| int key_code = event.keycode(); |
| if (key_code >= 0 && key_code < 256) { |