| OLD | NEW |
| 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 #ifndef REMOTING_PROTOCOL_MOUSE_INPUT_FILTER_H_ | 5 #ifndef REMOTING_PROTOCOL_MOUSE_INPUT_FILTER_H_ |
| 6 #define REMOTING_PROTOCOL_MOUSE_INPUT_FILTER_H_ | 6 #define REMOTING_PROTOCOL_MOUSE_INPUT_FILTER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 10 #include "remoting/protocol/input_filter.h" | 9 #include "remoting/protocol/input_filter.h" |
| 11 #include "remoting/protocol/input_stub.h" | |
| 12 #include "third_party/skia/include/core/SkTypes.h" | 10 #include "third_party/skia/include/core/SkTypes.h" |
| 13 #include "third_party/skia/include/core/SkSize.h" | 11 #include "third_party/skia/include/core/SkSize.h" |
| 14 | 12 |
| 15 namespace remoting { | 13 namespace remoting { |
| 16 namespace protocol { | 14 namespace protocol { |
| 17 | 15 |
| 18 // Filtering InputStub implementation which scales mouse events based on the | 16 // Filtering InputStub implementation which scales mouse events based on the |
| 19 // supplied input and output dimensions, and clamps their coordinates to the | 17 // supplied input and output dimensions, and clamps their coordinates to the |
| 20 // output dimensions, before passing events on to |input_stub|. | 18 // output dimensions, before passing events on to |input_stub|. |
| 21 class MouseInputFilter : public InputFilter { | 19 class MouseInputFilter : public InputFilter { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 SkISize input_max_; | 35 SkISize input_max_; |
| 38 SkISize output_max_; | 36 SkISize output_max_; |
| 39 | 37 |
| 40 DISALLOW_COPY_AND_ASSIGN(MouseInputFilter); | 38 DISALLOW_COPY_AND_ASSIGN(MouseInputFilter); |
| 41 }; | 39 }; |
| 42 | 40 |
| 43 } // namespace protocol | 41 } // namespace protocol |
| 44 } // namespace remoting | 42 } // namespace remoting |
| 45 | 43 |
| 46 #endif // REMOTING_PROTOCOL_MOUSE_INPUT_FILTER_H_ | 44 #endif // REMOTING_PROTOCOL_MOUSE_INPUT_FILTER_H_ |
| OLD | NEW |