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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 2021773002: Use only DIPs size in ClientResolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | remoting/protocol/host_control_dispatcher.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index e3a63e6d81c71039358985bd150c2c46eee2a719..08274174b4a9b60f78210d2fe27ac8702d625fd3 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -811,15 +811,15 @@ void ChromotingInstance::HandleNotifyClientResolution(
}
protocol::ClientResolution client_resolution;
- client_resolution.set_width(width);
- client_resolution.set_height(height);
client_resolution.set_x_dpi(x_dpi);
client_resolution.set_y_dpi(y_dpi);
-
- // Include the legacy width & height in DIPs for use by older hosts.
client_resolution.set_dips_width((width * kDefaultDPI) / x_dpi);
client_resolution.set_dips_height((height * kDefaultDPI) / y_dpi);
+ // Include the legacy width & height in DIPs for use by older hosts.
Jamie 2016/05/31 20:40:47 s/DIPs/device pixels/
Sergey Ulanov 2016/06/01 10:08:50 Done.
+ client_resolution.set_width_deprecated(width);
+ client_resolution.set_height_deprecated(height);
+
client_->host_stub()->NotifyClientResolution(client_resolution);
}
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | remoting/protocol/host_control_dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698