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