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