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

Unified Diff: remoting/webapp/app_remoting/js/app_connected_view.js

Issue 1438043005: Closure compiler: Add app_remoting_webapp to bot. Fix some errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix parameter notation on createWindow function. Created 5 years, 1 month 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 | « remoting/app_remoting_webapp_files.gypi ('k') | remoting/webapp/app_remoting/js/ar_background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/app_remoting/js/app_connected_view.js
diff --git a/remoting/webapp/app_remoting/js/app_connected_view.js b/remoting/webapp/app_remoting/js/app_connected_view.js
index be1e0aba6f670e30c1ea73ed5cc12c8c741a894d..f3d05beecb74460243f01e12e12fd5de35abf954 100644
--- a/remoting/webapp/app_remoting/js/app_connected_view.js
+++ b/remoting/webapp/app_remoting/js/app_connected_view.js
@@ -111,7 +111,7 @@ remoting.AppConnectedView.prototype.dispose = function() {
*/
remoting.AppConnectedView.prototype.resizeHostToClientArea_ = function() {
var hostDesktop = this.plugin_.hostDesktop();
- var desktopScale = this.host_.options.desktopScale;
+ var desktopScale = this.host_.options.getDesktopScale();
hostDesktop.resize(window.innerWidth * desktopScale,
window.innerHeight * desktopScale,
window.devicePixelRatio);
@@ -134,7 +134,7 @@ remoting.AppConnectedView.prototype.onDesktopSizeChanged_ =
var clientArea = { width: window.innerWidth, height: window.innerHeight };
var newSize = remoting.Viewport.choosePluginSize(
clientArea, window.devicePixelRatio,
- hostSize, hostDpi, this.host_.options.desktopScale,
+ hostSize, hostDpi, this.host_.options.getDesktopScale(),
true /* fullscreen */ , true /* shrinkToFit */ );
this.plugin_.element().style.width = newSize.width + 'px';
« no previous file with comments | « remoting/app_remoting_webapp_files.gypi ('k') | remoting/webapp/app_remoting/js/ar_background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698