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

Unified 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: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 51a33a5937cbafad54a2e4489f799b3fb711b269..61e4960d4f4792421b6bd37c020f8dccf75dba60 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -70,10 +70,11 @@ ClientSession::ClientSession(
void ClientSession::NotifyClientDimensions(
const protocol::ClientDimensions& dimensions) {
- // TODO(wez): Use the dimensions, e.g. to resize the host desktop to match.
if (dimensions.has_width() && dimensions.has_height()) {
VLOG(1) << "Received ClientDimensions (width="
<< dimensions.width() << ", height=" << dimensions.height() << ")";
+ event_handler_->OnClientDimensionsChanged(
+ SkISize::Make(dimensions.width(), dimensions.height()));
}
}

Powered by Google App Engine
This is Rietveld 408576698