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

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

Issue 4726003: Implement InputStub in the host side for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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_LINUX_H_ 5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_
6 #define REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_ 6 #define REMOTING_HOST_EVENT_EXECUTOR_LINUX_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"
11 12
12 namespace remoting { 13 namespace remoting {
13 14
15 class Capturer;
16 class ChromotingClientMessage;
17
14 // A class to generate events on Linux. 18 // A class to generate events on Linux.
15 class EventExecutorLinux : public EventExecutor { 19 class EventExecutorLinux : public protocol::InputStub {
16 public: 20 public:
17 EventExecutorLinux(Capturer* capturer); 21 EventExecutorLinux(Capturer* capturer);
18 virtual ~EventExecutorLinux(); 22 virtual ~EventExecutorLinux();
19 23
20 virtual void HandleInputEvent(ChromotingClientMessage* message); 24 virtual void InjectKeyEvent(const KeyEvent* event, Task* done);
25 virtual void InjectMouseEvent(const MouseEvent* event, Task* done);
21 26
22 private: 27 private:
28 Capturer* capturer_;
29
23 DISALLOW_COPY_AND_ASSIGN(EventExecutorLinux); 30 DISALLOW_COPY_AND_ASSIGN(EventExecutorLinux);
24 }; 31 };
25 32
26 } // namespace remoting 33 } // namespace remoting
27 34
28 #endif // REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_ 35 #endif // REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698