| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CLIENT_MOUSE_INPUT_FILTER_H_ | 5 #ifndef REMOTING_CLIENT_MOUSE_INPUT_FILTER_H_ |
| 6 #define REMOTING_CLIENT_MOUSE_INPUT_FILTER_H_ | 6 #define REMOTING_CLIENT_MOUSE_INPUT_FILTER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "remoting/protocol/input_stub.h" | 10 #include "remoting/protocol/input_stub.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 MouseInputFilter(protocol::InputStub* input_stub); | 21 MouseInputFilter(protocol::InputStub* input_stub); |
| 22 virtual ~MouseInputFilter(); | 22 virtual ~MouseInputFilter(); |
| 23 | 23 |
| 24 // Specify the input dimensions for mouse events. | 24 // Specify the input dimensions for mouse events. |
| 25 void set_input_size(const SkISize& size); | 25 void set_input_size(const SkISize& size); |
| 26 | 26 |
| 27 // Specify the output dimensions. | 27 // Specify the output dimensions. |
| 28 void set_output_size(const SkISize& size); | 28 void set_output_size(const SkISize& size); |
| 29 | 29 |
| 30 // InputStub interface. | 30 // InputStub interface. |
| 31 virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event) |
| 32 OVERRIDE; |
| 31 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; | 33 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; |
| 32 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; | 34 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
| 33 | 35 |
| 34 private: | 36 private: |
| 35 protocol::InputStub* input_stub_; | 37 protocol::InputStub* input_stub_; |
| 36 | 38 |
| 37 SkISize input_max_; | 39 SkISize input_max_; |
| 38 SkISize output_max_; | 40 SkISize output_max_; |
| 39 | 41 |
| 40 DISALLOW_COPY_AND_ASSIGN(MouseInputFilter); | 42 DISALLOW_COPY_AND_ASSIGN(MouseInputFilter); |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace remoting | 45 } // namespace remoting |
| 44 | 46 |
| 45 #endif // REMOTING_CLIENT_MOUSE_INPUT_FILTER_H_ | 47 #endif // REMOTING_CLIENT_MOUSE_INPUT_FILTER_H_ |
| OLD | NEW |