| OLD | NEW |
| 1 // Copyright (c) 2011 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 event messages defined in event.proto. | 6 // This interface handles some 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/basictypes.h" |
| 12 #include "remoting/protocol/clipboard_stub.h" |
| 12 | 13 |
| 13 namespace remoting { | 14 namespace remoting { |
| 14 namespace protocol { | 15 namespace protocol { |
| 15 | 16 |
| 16 class KeyEvent; | 17 class KeyEvent; |
| 17 class MouseEvent; | 18 class MouseEvent; |
| 18 | 19 |
| 19 class InputStub { | 20 // TODO(wez): Stop InputStub inheriting from ClipboardStub when |
| 21 // DesktopEnvironment has been refactored so that it can treat InputStub and |
| 22 // ClipboardStub separately. |
| 23 class InputStub : public ClipboardStub { |
| 20 public: | 24 public: |
| 21 InputStub() {} | 25 InputStub() {} |
| 22 virtual ~InputStub() {} | 26 virtual ~InputStub() {} |
| 23 | 27 |
| 24 virtual void InjectKeyEvent(const KeyEvent& event) = 0; | 28 virtual void InjectKeyEvent(const KeyEvent& event) = 0; |
| 25 virtual void InjectMouseEvent(const MouseEvent& event) = 0; | 29 virtual void InjectMouseEvent(const MouseEvent& event) = 0; |
| 26 | 30 |
| 27 private: | 31 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(InputStub); | 32 DISALLOW_COPY_AND_ASSIGN(InputStub); |
| 29 }; | 33 }; |
| 30 | 34 |
| 31 } // namespace protocol | 35 } // namespace protocol |
| 32 } // namespace remoting | 36 } // namespace remoting |
| 33 | 37 |
| 34 #endif // REMOTING_PROTOCOL_INPUT_STUB_H_ | 38 #endif // REMOTING_PROTOCOL_INPUT_STUB_H_ |
| OLD | NEW |