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

Unified Diff: remoting/webapp/window_frame.js

Issue 338373004: Smoother full-screen UX (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reinstate double-restore. Created 6 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/window_frame.js
diff --git a/remoting/webapp/window_frame.js b/remoting/webapp/window_frame.js
index b4f3d740af7454f9bf96036788dc5e9b7e628356..6bdf3fb752ca70f48151615d4e28b89db79f8323 100644
--- a/remoting/webapp/window_frame.js
+++ b/remoting/webapp/window_frame.js
@@ -131,6 +131,8 @@ remoting.WindowFrame.prototype.maximizeOrRestoreWindow_ = function() {
// being maximized, then the second restore has no effect.
chrome.app.window.current().restore();
chrome.app.window.current().restore();
+ } else if (this.isConnected_) {
+ chrome.app.window.current().fullscreen();
} else {
chrome.app.window.current().maximize();
}
@@ -172,4 +174,4 @@ remoting.WindowFrame.prototype.updateMaximizeOrRestoreIconTitle_ = function() {
};
/** @type {remoting.WindowFrame} */
-remoting.windowFrame = null;
+remoting.windowFrame = null;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698