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_MAC_H_ | 5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_MAC_H_ |
6 #define REMOTING_HOST_EVENT_EXECUTOR_MAC_H_ | 6 #define REMOTING_HOST_EVENT_EXECUTOR_MAC_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "remoting/host/event_executor.h" | 10 #include "base/basictypes.h" |
| 11 #include "remoting/protocol/input_stub.h" |
| 12 |
| 13 class MessageLoop; |
11 | 14 |
12 namespace remoting { | 15 namespace remoting { |
13 | 16 |
| 17 class Capturer; |
| 18 class ChromotingClientMessage; |
| 19 |
14 // A class to generate events on Mac. | 20 // A class to generate events on Mac. |
15 class EventExecutorMac : public EventExecutor { | 21 class EventExecutorMac : public protocol::InputStub { |
16 public: | 22 public: |
17 EventExecutorMac(Capturer* capturer); | 23 EventExecutorMac(MessageLoop* message_loop, Capturer* capturer); |
18 virtual ~EventExecutorMac(); | 24 virtual ~EventExecutorMac(); |
19 | 25 |
20 virtual void HandleInputEvent(ChromotingClientMessage* message); | 26 virtual void InjectKeyEvent(const KeyEvent* event, Task* done); |
| 27 virtual void InjectMouseEvent(const MouseEvent* event, Task* done); |
21 | 28 |
22 private: | 29 private: |
| 30 MessageLoop* message_loop_; |
| 31 Capturer* capturer_; |
| 32 |
23 DISALLOW_COPY_AND_ASSIGN(EventExecutorMac); | 33 DISALLOW_COPY_AND_ASSIGN(EventExecutorMac); |
24 }; | 34 }; |
25 | 35 |
26 } // namespace remoting | 36 } // namespace remoting |
27 | 37 |
28 #endif // REMOTING_HOST_EVENT_EXECUTOR_MAC_H_ | 38 #endif // REMOTING_HOST_EVENT_EXECUTOR_MAC_H_ |
OLD | NEW |