Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: remoting/host/mouse_clamping_filter.h

Issue 10829409: Add MouseClampingFilter and update ClientSession to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid implementation inheritance in MouseClampingFilter. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698