| Index: remoting/host/event_executor_win.cc
|
| diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc
|
| index 2a1871e245d0b23c5855f794a84bf00707778b16..75ce205ea1cc4a890855d59073b24309172ce54b 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 {
|
|
|
| @@ -32,6 +33,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;
|
|
|
| @@ -51,6 +56,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(
|
| @@ -194,9 +203,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));
|
| }
|
|
|
|
|