OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_H_ | |
6 #define REMOTING_HOST_EVENT_EXECUTOR_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/basictypes.h" | |
11 | |
12 namespace remoting { | |
13 | |
14 class Capturer; | |
15 class ChromotingClientMessage; | |
16 | |
17 // An interface that defines the behavior of an event executor object. | |
18 // An event executor is to perform actions on the host machine. For example | |
19 // moving the mouse cursor, generating keyboard events and manipulating | |
20 // clipboards. | |
21 class EventExecutor { | |
22 public: | |
23 explicit EventExecutor(Capturer* capturer) | |
24 : capturer_(capturer) { | |
25 } | |
26 virtual ~EventExecutor() {} | |
27 | |
28 // Handles input events from ClientMessageList and removes them from the | |
29 // list. | |
30 virtual void HandleInputEvent(ChromotingClientMessage* message) = 0; | |
31 // TODO(hclam): Define actions for clipboards. | |
32 | |
33 protected: | |
34 Capturer* capturer_; | |
35 | |
36 private: | |
37 DISALLOW_COPY_AND_ASSIGN(EventExecutor); | |
38 }; | |
39 | |
40 } // namespace remoting | |
41 | |
42 #endif // REMOTING_HOST_EVENT_EXECUTOR_H_ | |
OLD | NEW |