Index: remoting/host/event_executor_win.cc |
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc |
index af662254e75e6280e6836ecba5144813aa0d36b3..53e98d727888b3cb5477f78589a4577a8a573528 100644 |
--- a/remoting/host/event_executor_win.cc |
+++ b/remoting/host/event_executor_win.cc |
@@ -15,8 +15,9 @@ |
namespace remoting { |
-using protocol::MouseEvent; |
+using protocol::ClipboardEvent; |
using protocol::KeyEvent; |
+using protocol::MouseEvent; |
namespace { |
@@ -26,6 +27,10 @@ class EventExecutorWin : public EventExecutor { |
EventExecutorWin(MessageLoop* message_loop, Capturer* capturer); |
virtual ~EventExecutorWin() {} |
+ // ClipboardStub interface. |
+ virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; |
+ |
+ // InputStub interface. |
virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE; |
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE; |
@@ -45,6 +50,10 @@ EventExecutorWin::EventExecutorWin(MessageLoop* message_loop, |
capturer_(capturer) { |
} |
+void EventExecutorWin::InjectClipboardEvent(const ClipboardEvent& event) { |
+ // TODO(simonmorris): Implement clipboard injection. |
+} |
+ |
void EventExecutorWin::InjectKeyEvent(const KeyEvent& event) { |
if (MessageLoop::current() != message_loop_) { |
message_loop_->PostTask( |
@@ -167,9 +176,9 @@ void EventExecutorWin::HandleMouse(const MouseEvent& event) { |
} // namespace |
-scoped_ptr<protocol::InputStub> EventExecutor::Create(MessageLoop* message_loop, |
- Capturer* capturer) { |
- return scoped_ptr<protocol::InputStub>( |
+scoped_ptr<protocol::HostEventStub> EventExecutor::Create( |
+ MessageLoop* message_loop, Capturer* capturer) { |
+ return scoped_ptr<protocol::HostEventStub>( |
new EventExecutorWin(message_loop, capturer)); |
} |