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

Side by Side Diff: remoting/host/client_session.cc

Issue 10082042: Restore mouse clamping in ClientSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | 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/host/client_session.h" 5 #include "remoting/host/client_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "remoting/host/capturer.h" 10 #include "remoting/host/capturer.h"
(...skipping 16 matching lines...) Expand all
27 input_tracker_(host_event_stub), 27 input_tracker_(host_event_stub),
28 remote_input_filter_(&input_tracker_), 28 remote_input_filter_(&input_tracker_),
29 capturer_(capturer) { 29 capturer_(capturer) {
30 connection_->SetEventHandler(this); 30 connection_->SetEventHandler(this);
31 31
32 // TODO(sergeyu): Currently ConnectionToClient expects stubs to be 32 // TODO(sergeyu): Currently ConnectionToClient expects stubs to be
33 // set before channels are connected. Make it possible to set stubs 33 // set before channels are connected. Make it possible to set stubs
34 // later and set them only when connection is authenticated. 34 // later and set them only when connection is authenticated.
35 connection_->set_clipboard_stub(this); 35 connection_->set_clipboard_stub(this);
36 connection_->set_host_stub(this); 36 connection_->set_host_stub(this);
37 connection_->set_input_stub(&auth_input_filter_); 37 connection_->set_input_stub(this);
38 } 38 }
39 39
40 ClientSession::~ClientSession() { 40 ClientSession::~ClientSession() {
41 } 41 }
42 42
43 void ClientSession::InjectClipboardEvent( 43 void ClientSession::InjectClipboardEvent(
44 const protocol::ClipboardEvent& event) { 44 const protocol::ClipboardEvent& event) {
45 DCHECK(CalledOnValidThread()); 45 DCHECK(CalledOnValidThread());
46 46
47 // TODO(wez): Disable clipboard in both directions on local activity, and 47 // TODO(wez): Disable clipboard in both directions on local activity, and
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 if (disable_inputs) { 146 if (disable_inputs) {
147 disable_input_filter_.set_input_stub(NULL); 147 disable_input_filter_.set_input_stub(NULL);
148 input_tracker_.ReleaseAll(); 148 input_tracker_.ReleaseAll();
149 } else { 149 } else {
150 disable_input_filter_.set_input_stub(&remote_input_filter_); 150 disable_input_filter_.set_input_stub(&remote_input_filter_);
151 } 151 }
152 } 152 }
153 153
154 } // namespace remoting 154 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698