diff options
Diffstat (limited to 'remoting/host/event_executor_mac.h')
-rw-r--r-- | remoting/host/event_executor_mac.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/remoting/host/event_executor_mac.h b/remoting/host/event_executor_mac.h index f8934b1..052ca48 100644 --- a/remoting/host/event_executor_mac.h +++ b/remoting/host/event_executor_mac.h @@ -7,19 +7,29 @@ #include <vector> -#include "remoting/host/event_executor.h" +#include "base/basictypes.h" +#include "remoting/protocol/input_stub.h" + +class MessageLoop; namespace remoting { +class Capturer; +class ChromotingClientMessage; + // A class to generate events on Mac. -class EventExecutorMac : public EventExecutor { +class EventExecutorMac : public protocol::InputStub { public: - EventExecutorMac(Capturer* capturer); + EventExecutorMac(MessageLoop* message_loop, Capturer* capturer); virtual ~EventExecutorMac(); - virtual void HandleInputEvent(ChromotingClientMessage* message); + virtual void InjectKeyEvent(const KeyEvent* event, Task* done); + virtual void InjectMouseEvent(const MouseEvent* event, Task* done); private: + MessageLoop* message_loop_; + Capturer* capturer_; + DISALLOW_COPY_AND_ASSIGN(EventExecutorMac); }; |