| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ |
| 6 #define REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "remoting/protocol/input_filter.h" |
| 10 |
| 11 namespace remoting { |
| 12 |
| 13 namespace protocol { |
| 14 class MouseInputFilter; |
| 15 } |
| 16 |
| 17 class VideoFrameCapturer; |
| 18 |
| 19 // InputFilter implementation which uses a target MouseInputFilter to clamp |
| 20 // mouse events to the current VideoFrameCapturer dimensions. |
| 21 class MouseClampingFilter : public protocol::InputFilter { |
| 22 public: |
| 23 MouseClampingFilter(VideoFrameCapturer* capturer, |
| 24 protocol::MouseInputFilter* input_stub); |
| 25 virtual ~MouseClampingFilter(); |
| 26 |
| 27 // InputFilter overrides. |
| 28 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
| 29 |
| 30 private: |
| 31 VideoFrameCapturer* capturer_; |
| 32 protocol::MouseInputFilter* mouse_input_filter_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(MouseClampingFilter); |
| 35 }; |
| 36 |
| 37 } // namespace remoting |
| 38 |
| 39 #endif // REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ |
| OLD | NEW |