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

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

Issue 952353002: Requiem for client_screen.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + Ready for Check-in Created 5 years, 10 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/toolbar.js ('k') | remoting/webapp/crd/js/window_frame.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/ui_mode.js
diff --git a/remoting/webapp/crd/js/ui_mode.js b/remoting/webapp/crd/js/ui_mode.js
index 89c833ecb7978ae9698c21e4604d97e19bd2bd11..96a2021d8d19537fe23a5280d3b38ca3bc7ec0ad 100644
--- a/remoting/webapp/crd/js/ui_mode.js
+++ b/remoting/webapp/crd/js/ui_mode.js
@@ -123,20 +123,9 @@ remoting.setMode = function(mode) {
if (mode == remoting.AppMode.IN_SESSION) {
document.removeEventListener('keydown', remoting.ConnectionStats.onKeydown,
false);
- if ('hidden' in document) {
- document.addEventListener('visibilitychange',
- remoting.onVisibilityChanged, false);
- } else {
- document.addEventListener('webkitvisibilitychange',
- remoting.onVisibilityChanged, false);
- }
} else {
document.addEventListener('keydown', remoting.ConnectionStats.onKeydown,
false);
- document.removeEventListener('visibilitychange',
- remoting.onVisibilityChanged, false);
- document.removeEventListener('webkitvisibilitychange',
- remoting.onVisibilityChanged, false);
// TODO(jamiewalch): crbug.com/252796: Remove this once crbug.com/240772
// is fixed.
var scroller = document.getElementById('scroller');
« no previous file with comments | « remoting/webapp/crd/js/toolbar.js ('k') | remoting/webapp/crd/js/window_frame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698