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

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

Issue 10918224: Cross-platform plumbing for resize-to-client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo. Created 8 years, 2 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/client_session.h ('k') | remoting/host/desktop_resizer.h » ('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 #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/codec/audio_encoder.h" 10 #include "remoting/codec/audio_encoder.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 connection_->set_input_stub(&auth_input_filter_); 63 connection_->set_input_stub(&auth_input_filter_);
64 clipboard_echo_filter_.set_host_stub(host_clipboard_stub_); 64 clipboard_echo_filter_.set_host_stub(host_clipboard_stub_);
65 65
66 // |auth_*_filter_|'s states reflect whether the session is authenticated. 66 // |auth_*_filter_|'s states reflect whether the session is authenticated.
67 auth_input_filter_.set_enabled(false); 67 auth_input_filter_.set_enabled(false);
68 auth_clipboard_filter_.set_enabled(false); 68 auth_clipboard_filter_.set_enabled(false);
69 } 69 }
70 70
71 void ClientSession::NotifyClientDimensions( 71 void ClientSession::NotifyClientDimensions(
72 const protocol::ClientDimensions& dimensions) { 72 const protocol::ClientDimensions& dimensions) {
73 // TODO(wez): Use the dimensions, e.g. to resize the host desktop to match.
74 if (dimensions.has_width() && dimensions.has_height()) { 73 if (dimensions.has_width() && dimensions.has_height()) {
75 VLOG(1) << "Received ClientDimensions (width=" 74 VLOG(1) << "Received ClientDimensions (width="
76 << dimensions.width() << ", height=" << dimensions.height() << ")"; 75 << dimensions.width() << ", height=" << dimensions.height() << ")";
76 event_handler_->OnClientDimensionsChanged(
77 this, SkISize::Make(dimensions.width(), dimensions.height()));
77 } 78 }
78 } 79 }
79 80
80 void ClientSession::ControlVideo(const protocol::VideoControl& video_control) { 81 void ClientSession::ControlVideo(const protocol::VideoControl& video_control) {
81 // TODO(wez): Pause/resume video updates, being careful not to let clients 82 // TODO(wez): Pause/resume video updates, being careful not to let clients
82 // override any host-initiated pause of the video channel. 83 // override any host-initiated pause of the video channel.
83 if (video_control.has_enable()) { 84 if (video_control.has_enable()) {
84 VLOG(1) << "Received VideoControl (enable=" 85 VLOG(1) << "Received VideoControl (enable="
85 << video_control.enable() << ")"; 86 << video_control.enable() << ")";
86 } 87 }
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 NOTIMPLEMENTED(); 298 NOTIMPLEMENTED();
298 return scoped_ptr<AudioEncoder>(NULL); 299 return scoped_ptr<AudioEncoder>(NULL);
299 } 300 }
300 301
301 // static 302 // static
302 void ClientSessionTraits::Destruct(const ClientSession* client) { 303 void ClientSessionTraits::Destruct(const ClientSession* client) {
303 client->network_task_runner_->DeleteSoon(FROM_HERE, client); 304 client->network_task_runner_->DeleteSoon(FROM_HERE, client);
304 } 305 }
305 306
306 } // namespace remoting 307 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/desktop_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698