summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 13:52:03 +0000
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 13:52:03 +0000
commit22ccd404385e7fd7cc3b64f4e73ca0d8eb4dcc4f (patch)
tree69d45d9a2575a50081133d64bfefaa8677fe46f3 /remoting
parentc6364df733d358b12dc34e51c965ed64e2a806d6 (diff)
downloadchromium_src-22ccd404385e7fd7cc3b64f4e73ca0d8eb4dcc4f.zip
chromium_src-22ccd404385e7fd7cc3b64f4e73ca0d8eb4dcc4f.tar.gz
chromium_src-22ccd404385e7fd7cc3b64f4e73ca0d8eb4dcc4f.tar.bz2
Leave full-screen mode on disconnect.
This is needed because the only UI we provide for doing this is in the tool-bar, which disappears on disconnect. BUG=263215 Review URL: https://chromiumcodereview.appspot.com/21142002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214716 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/webapp/client_session.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index 508a49f..51b72a7 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -458,12 +458,17 @@ remoting.ClientSession.prototype.removePlugin = function() {
this.plugin.cleanup();
this.plugin = null;
}
+
+ // Delete event handlers that aren't relevent when not connected.
this.resizeToClientButton_.removeEventListener(
'click', this.callSetScreenMode_, false);
this.shrinkToFitButton_.removeEventListener(
'click', this.callSetScreenMode_, false);
this.fullScreenButton_.removeEventListener(
'click', this.callToggleFullScreen_, false);
+
+ // In case the user had selected full-screen mode, cancel it now.
+ document.webkitCancelFullScreen();
};
/**