Index: remoting/webapp/client_plugin_async.js |
diff --git a/remoting/webapp/client_plugin_async.js b/remoting/webapp/client_plugin_async.js |
index e57902eb7a933e63d9ad831921151b9d8e6737c5..dd1b5cd7d89b171f8b152eb22c331e58584f68f7 100644 |
--- a/remoting/webapp/client_plugin_async.js |
+++ b/remoting/webapp/client_plugin_async.js |
@@ -26,6 +26,8 @@ remoting.ClientPluginAsync = function(plugin) { |
this.desktopWidth = 0; |
this.desktopHeight = 0; |
+ this.desktopXDpi = 96; |
+ this.desktopYDpi = 96; |
/** @param {string} iq The Iq stanza received from the host. */ |
this.onOutgoingIqHandler = function (iq) {}; |
@@ -162,6 +164,10 @@ remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) { |
} |
this.desktopWidth = /** @type {number} */ message.data['width']; |
this.desktopHeight = /** @type {number} */ message.data['height']; |
+ this.desktopXDpi = (typeof message.data['x_dpi'] == 'number') ? |
+ /** @type {number} */ (message.data['x_dpi']) : 96; |
+ this.desktopYDpi = (typeof message.data['y_dpi'] == 'number') ? |
+ /** @type {number} */ (message.data['y_dpi']) : 96; |
this.onDesktopSizeUpdateHandler(); |
} else if (message.method == 'onPerfStats') { |
if (typeof message.data['videoBandwidth'] != 'number' || |