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

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

Issue 10831221: Tidy up ChromotingInstance members a little. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. 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/protocol/mouse_input_filter.h ('k') | no next file » | 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 #include "remoting/protocol/mouse_input_filter.h" 5 #include "remoting/protocol/mouse_input_filter.h"
6 6
7 #include "remoting/proto/event.pb.h" 7 #include "remoting/proto/event.pb.h"
8 8
9 namespace remoting { 9 namespace remoting {
10 namespace protocol { 10 namespace protocol {
11 11
12 MouseInputFilter::MouseInputFilter() {
13 }
14
12 MouseInputFilter::MouseInputFilter(InputStub* input_stub) 15 MouseInputFilter::MouseInputFilter(InputStub* input_stub)
13 : InputFilter(input_stub) { 16 : InputFilter(input_stub) {
14 input_max_.setEmpty(); 17 input_max_.setEmpty();
15 output_max_.setEmpty(); 18 output_max_.setEmpty();
16 } 19 }
17 20
18 MouseInputFilter::~MouseInputFilter() { 21 MouseInputFilter::~MouseInputFilter() {
19 } 22 }
20 23
21 void MouseInputFilter::InjectMouseEvent(const MouseEvent& event) { 24 void MouseInputFilter::InjectMouseEvent(const MouseEvent& event) {
(...skipping 22 matching lines...) Expand all
44 void MouseInputFilter::set_input_size(const SkISize& size) { 47 void MouseInputFilter::set_input_size(const SkISize& size) {
45 input_max_ = SkISize::Make(size.width() - 1, size.height() - 1); 48 input_max_ = SkISize::Make(size.width() - 1, size.height() - 1);
46 } 49 }
47 50
48 void MouseInputFilter::set_output_size(const SkISize& size) { 51 void MouseInputFilter::set_output_size(const SkISize& size) {
49 output_max_ = SkISize::Make(size.width() - 1, size.height() - 1); 52 output_max_ = SkISize::Make(size.width() - 1, size.height() - 1);
50 } 53 }
51 54
52 } // namespace protocol 55 } // namespace protocol
53 } // namespace remoting 56 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/mouse_input_filter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698