| Index: remoting/host/event_executor_win.h
|
| diff --git a/remoting/host/event_executor_win.h b/remoting/host/event_executor_win.h
|
| index e9a0269cec3fde5c8a42788ce5b11929f1ae7aa6..e4f55fc99e0a283ce3b9a00c987de19e1a398af8 100644
|
| --- a/remoting/host/event_executor_win.h
|
| +++ b/remoting/host/event_executor_win.h
|
| @@ -7,25 +7,32 @@
|
|
|
| #include <vector>
|
|
|
| -#include "remoting/host/event_executor.h"
|
| +#include "base/basictypes.h"
|
| +#include "remoting/protocol/input_stub.h"
|
|
|
| namespace remoting {
|
|
|
| +class Capturer;
|
| +class ChromotingClientMessage;
|
| +
|
| // A class to generate events on Windows.
|
| -class EventExecutorWin : public EventExecutor {
|
| +class EventExecutorWin : public protocol::InputStub {
|
| public:
|
| EventExecutorWin(Capturer* capturer);
|
| virtual ~EventExecutorWin();
|
|
|
| - virtual void HandleInputEvent(ChromotingClientMessage* message);
|
| + virtual void InjectKeyEvent(const KeyEvent* event, Task* done);
|
| + virtual void InjectMouseEvent(const MouseEvent* event, Task* done);
|
|
|
| private:
|
| - void HandleMouseSetPosition(ChromotingClientMessage* msg);
|
| - void HandleMouseMove(ChromotingClientMessage* msg);
|
| - void HandleMouseWheel(ChromotingClientMessage* msg);
|
| - void HandleMouseButtonDown(ChromotingClientMessage* msg);
|
| - void HandleMouseButtonUp(ChromotingClientMessage* msg);
|
| - void HandleKey(ChromotingClientMessage* msg);
|
| + void HandleMouseSetPosition(int x, int y, int width, int height);
|
| + void HandleMouseMove(int offset_x, int offset_y);
|
| + void HandleMouseWheel(int offset_x, int offset_y);
|
| + void HandleMouseButtonDown(MouseButton button);
|
| + void HandleMouseButtonUp(MouseButton button);
|
| + void HandleKey(int key, bool down);
|
| +
|
| + Capturer* capturer_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(EventExecutorWin);
|
| };
|
|
|