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 "remoting/host/event_executor.h" | 10 #include "remoting/host/event_executor.h" |
11 | 11 |
12 namespace remoting { | 12 namespace remoting { |
13 | 13 |
14 // A class to generate events on Windows. | 14 // A class to generate events on Windows. |
15 class EventExecutorWin : public EventExecutor { | 15 class EventExecutorWin : public EventExecutor { |
16 public: | 16 public: |
17 EventExecutorWin(); | 17 EventExecutorWin(Capturer* capturer); |
18 virtual ~EventExecutorWin(); | 18 virtual ~EventExecutorWin(); |
19 | 19 |
20 virtual void HandleInputEvents(ClientMessageList* messages); | 20 virtual void HandleInputEvents(ClientMessageList* messages); |
21 | 21 |
22 private: | 22 private: |
23 void HandleMouseSetPosition(ChromotingClientMessage* msg); | 23 void HandleMouseSetPosition(ChromotingClientMessage* msg); |
24 void HandleMouseMove(ChromotingClientMessage* msg); | 24 void HandleMouseMove(ChromotingClientMessage* msg); |
25 void HandleMouseWheel(ChromotingClientMessage* msg); | 25 void HandleMouseWheel(ChromotingClientMessage* msg); |
26 void HandleMouseButtonDown(ChromotingClientMessage* msg); | 26 void HandleMouseButtonDown(ChromotingClientMessage* msg); |
27 void HandleMouseButtonUp(ChromotingClientMessage* msg); | 27 void HandleMouseButtonUp(ChromotingClientMessage* msg); |
28 void HandleKey(ChromotingClientMessage* msg); | 28 void HandleKey(ChromotingClientMessage* msg); |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(EventExecutorWin); | 30 DISALLOW_COPY_AND_ASSIGN(EventExecutorWin); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace remoting | 33 } // namespace remoting |
34 | 34 |
35 #endif // REMOTING_HOST_EVENT_EXECUTOR_WIN_H_ | 35 #endif // REMOTING_HOST_EVENT_EXECUTOR_WIN_H_ |
OLD | NEW |