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

Unified Diff: remoting/webapp/crd/js/event_handlers.js

Issue 875583002: Allow full-screen mode when not connected, and remember the previous setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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 | « remoting/webapp/crd/js/desktop_remoting.js ('k') | remoting/webapp/crd/js/fullscreen_v2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/event_handlers.js
diff --git a/remoting/webapp/crd/js/event_handlers.js b/remoting/webapp/crd/js/event_handlers.js
index f6b86d2c42d5d4ffa036255d121ccebed972fe97..9e1c68d7f50563352c1523a9c81873fdcb5f78d3 100644
--- a/remoting/webapp/crd/js/event_handlers.js
+++ b/remoting/webapp/crd/js/event_handlers.js
@@ -4,23 +4,6 @@
'use strict';
-/** @suppress {duplicate} */
-var remoting = remoting || {};
-
-remoting.initGlobalEventHandlers = function() {
- window.addEventListener('resize', remoting.onResize, false);
- // When a window goes full-screen, a resize event is triggered, but the
- // Fullscreen.isActive call is not guaranteed to return true until the
- // full-screen event is triggered. In apps v2, the size of the window's
- // client area is calculated differently in full-screen mode, so register
- // for both events.
- remoting.fullscreen.addListener(remoting.onResize);
- if (!base.isAppsV2()) {
- window.addEventListener('beforeunload', remoting.promptClose, false);
- window.addEventListener('unload', remoting.disconnect, false);
- }
-}
-
/**
* @param {Array.<{event: string, id: string,
* fn: function(Event):void}>} actions Array of actions to register.
« no previous file with comments | « remoting/webapp/crd/js/desktop_remoting.js ('k') | remoting/webapp/crd/js/fullscreen_v2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698