Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: remoting/host/event_executor.h

Issue 4726003: Implement InputStub in the host side for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698