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

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

Issue 11761019: Tiny little refactoring of DesktopEnvironment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « remoting/host/local_desktop_environment.cc ('k') | remoting/host/mouse_clamping_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_HOST_MOUSE_CLAMPING_FILTER_H_ 5 #ifndef REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_
6 #define REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ 6 #define REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "remoting/protocol/mouse_input_filter.h" 9 #include "remoting/protocol/mouse_input_filter.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 class VideoFrameCapturer; 13 class DesktopEnvironment;
14 14
15 // Filtering InputStub implementation which clamps mouse each mouse event to 15 // Filtering InputStub implementation which clamps mouse each mouse event to
16 // the current dimensions of a VideoFrameCapturer instance before passing 16 // the current dimensions of a VideoFrameCapturer instance before passing
17 // them on to the target |input_stub|. 17 // them on to the target |input_stub|.
18 class MouseClampingFilter : public protocol::MouseInputFilter { 18 class MouseClampingFilter : public protocol::MouseInputFilter {
19 public: 19 public:
20 MouseClampingFilter(VideoFrameCapturer* capturer, 20 MouseClampingFilter(DesktopEnvironment* desktop_environment,
21 protocol::InputStub* input_stub); 21 protocol::InputStub* input_stub);
22 virtual ~MouseClampingFilter(); 22 virtual ~MouseClampingFilter();
23 23
24 // InputStub overrides. 24 // InputStub overrides.
25 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; 25 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE;
26 26
27 private: 27 private:
28 VideoFrameCapturer* capturer_; 28 DesktopEnvironment* desktop_environment_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(MouseClampingFilter); 30 DISALLOW_COPY_AND_ASSIGN(MouseClampingFilter);
31 }; 31 };
32 32
33 } // namespace remoting 33 } // namespace remoting
34 34
35 #endif // REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ 35 #endif // REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_
OLDNEW
« no previous file with comments | « remoting/host/local_desktop_environment.cc ('k') | remoting/host/mouse_clamping_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698