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

Side by Side Diff: remoting/protocol/input_stub.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
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 // Interface for a device that receives input events. 5 // Interface for a device that receives input events.
6 // This interface handles event messages defined in event.proto. 6 // This interface handles event messages defined in event.proto.
7 7
8 #ifndef REMOTING_PROTOCOL_INPUT_STUB_H_ 8 #ifndef REMOTING_PROTOCOL_INPUT_STUB_H_
9 #define REMOTING_PROTOCOL_INPUT_STUB_H_ 9 #define REMOTING_PROTOCOL_INPUT_STUB_H_
10 10
11 class Task; 11 class Task;
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 class KeyEvent; 15 class KeyEvent;
16 class MouseEvent; 16 class MouseEvent;
17 17
18 namespace protocol { 18 namespace protocol {
19 19
20 class InputStub { 20 class InputStub {
21 public: 21 public:
22 InputStub() {} 22 InputStub() {}
23 virtual ~InputStub() {} 23 virtual ~InputStub() {}
24 24
25 virtual void InjectKeyEvent(const KeyEvent& event, Task* done) = 0; 25 virtual void InjectKeyEvent(const KeyEvent* event, Task* done) = 0;
26 virtual void InjectMouseEvent(const MouseEvent& event, Task* done) = 0; 26 virtual void InjectMouseEvent(const MouseEvent* event, Task* done) = 0;
27 27
28 private: 28 private:
29 DISALLOW_COPY_AND_ASSIGN(InputStub); 29 DISALLOW_COPY_AND_ASSIGN(InputStub);
30 }; 30 };
31 31
32 } // namespace protocol 32 } // namespace protocol
33 } // namespace remoting 33 } // namespace remoting
34 34
35 #endif // REMOTING_PROTOCOL_INPUT_STUB_H_ 35 #endif // REMOTING_PROTOCOL_INPUT_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698