| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_WIN_H_ | 5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_WIN_H_ |
| 6 #define REMOTING_HOST_EVENT_EXECUTOR_WIN_H_ | 6 #define REMOTING_HOST_EVENT_EXECUTOR_WIN_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "remoting/host/event_executor.h" | 13 #include "remoting/host/event_executor.h" |
| 14 #include "remoting/protocol/input_stub.h" | 14 #include "remoting/protocol/input_stub.h" |
| 15 | 15 |
| 16 namespace remoting { | 16 namespace remoting { |
| 17 | 17 |
| 18 class EventExecutorWinPimpl; | 18 class EventExecutorWinPimpl; |
| 19 | 19 |
| 20 // A class to generate events on Windows. | 20 // A class to generate events on Windows. |
| 21 class EventExecutorWin : public protocol::InputStub { | 21 class EventExecutorWin : public protocol::InputStub { |
| 22 public: | 22 public: |
| 23 EventExecutorWin(MessageLoop* message_loop, Capturer* capturer); | 23 EventExecutorWin(MessageLoop* message_loop, Capturer* capturer); |
| 24 virtual ~EventExecutorWin(); | 24 virtual ~EventExecutorWin(); |
| 25 | 25 |
| 26 virtual void InjectKeyEvent(const KeyEvent* event, Task* done); | 26 virtual void InjectKeyEvent(const protocol::KeyEvent* event, Task* done); |
| 27 virtual void InjectMouseEvent(const MouseEvent* event, Task* done); | 27 virtual void InjectMouseEvent(const protocol::MouseEvent* event, Task* done); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 void HandleKey(const KeyEvent* event); | 30 void HandleKey(const protocol::KeyEvent* event); |
| 31 void HandleMouse(const MouseEvent* event); | 31 void HandleMouse(const protocol::MouseEvent* event); |
| 32 | 32 |
| 33 MessageLoop* message_loop_; | 33 MessageLoop* message_loop_; |
| 34 Capturer* capturer_; | 34 Capturer* capturer_; |
| 35 | 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(EventExecutorWin); | 36 DISALLOW_COPY_AND_ASSIGN(EventExecutorWin); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace remoting | 39 } // namespace remoting |
| 40 | 40 |
| 41 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::EventExecutorWin); | 41 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::EventExecutorWin); |
| 42 | 42 |
| 43 #endif // REMOTING_HOST_EVENT_EXECUTOR_WIN_H_ | 43 #endif // REMOTING_HOST_EVENT_EXECUTOR_WIN_H_ |
| OLD | NEW |