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

Side by Side Diff: remoting/protocol/mouse_input_filter.h

Issue 10829409: Add MouseClampingFilter and update ClientSession to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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
« no previous file with comments | « remoting/host/mouse_clamping_filter.cc ('k') | remoting/remoting.gyp » ('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_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
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_
OLDNEW
« no previous file with comments | « remoting/host/mouse_clamping_filter.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698