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

Side by Side Diff: remoting/protocol/input_stub.h

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 4 years, 12 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 input event messages defined in event.proto. 6 // This interface handles input 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 #include "base/basictypes.h" 11 #include "base/macros.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 namespace protocol { 14 namespace protocol {
15 15
16 class KeyEvent; 16 class KeyEvent;
17 class TextEvent; 17 class TextEvent;
18 class MouseEvent; 18 class MouseEvent;
19 class TouchEvent; 19 class TouchEvent;
20 20
21 class InputStub { 21 class InputStub {
22 public: 22 public:
23 InputStub() {} 23 InputStub() {}
24 virtual ~InputStub() {} 24 virtual ~InputStub() {}
25 25
26 // Implementations must never assume the presence of any |event| fields, 26 // Implementations must never assume the presence of any |event| fields,
27 // nor assume that their contents are valid. 27 // nor assume that their contents are valid.
28 virtual void InjectKeyEvent(const KeyEvent& event) = 0; 28 virtual void InjectKeyEvent(const KeyEvent& event) = 0;
29 virtual void InjectTextEvent(const TextEvent& event) = 0; 29 virtual void InjectTextEvent(const TextEvent& event) = 0;
30 virtual void InjectMouseEvent(const MouseEvent& event) = 0; 30 virtual void InjectMouseEvent(const MouseEvent& event) = 0;
31 virtual void InjectTouchEvent(const TouchEvent& event) = 0; 31 virtual void InjectTouchEvent(const TouchEvent& event) = 0;
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(InputStub); 34 DISALLOW_COPY_AND_ASSIGN(InputStub);
35 }; 35 };
36 36
37 } // namespace protocol 37 } // namespace protocol
38 } // namespace remoting 38 } // namespace remoting
39 39
40 #endif // REMOTING_PROTOCOL_INPUT_STUB_H_ 40 #endif // REMOTING_PROTOCOL_INPUT_STUB_H_
OLDNEW
« no previous file with comments | « remoting/protocol/input_filter_unittest.cc ('k') | remoting/protocol/it2me_host_authenticator_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698