| 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/mouse_input_filter.h" |
| 10 |
| 11 namespace remoting { |
| 12 |
| 13 class VideoFrameCapturer; |
| 14 |
| 15 // Filtering InputStub implementation which clamps mouse each mouse event to |
| 16 // the current dimensions of a VideoFrameCapturer instance before passing |
| 17 // them on to the target |input_stub|. |
| 18 class MouseClampingFilter : public protocol::MouseInputFilter { |
| 19 public: |
| 20 MouseClampingFilter(VideoFrameCapturer* capturer, |
| 21 protocol::InputStub* input_stub); |
| 22 virtual ~MouseClampingFilter(); |
| 23 |
| 24 // InputStub overrides. |
| 25 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
| 26 |
| 27 private: |
| 28 VideoFrameCapturer* capturer_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(MouseClampingFilter); |
| 31 }; |
| 32 |
| 33 } // namespace remoting |
| 34 |
| 35 #endif // REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ |
| OLD | NEW |