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

Side by Side Diff: remoting/webapp/ui_mode.js

Issue 539403002: Fix scroll-related issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « remoting/webapp/main.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * Functions related to controlling the modal UI state of the app. UI states 7 * Functions related to controlling the modal UI state of the app. UI states
8 * are expressed as HTML attributes with a dotted hierarchy. For example, the 8 * are expressed as HTML attributes with a dotted hierarchy. For example, the
9 * string 'host.shared' will match any elements with an associated attribute 9 * string 'host.shared' will match any elements with an associated attribute
10 * of 'host' or 'host.shared', showing those elements and hiding all others. 10 * of 'host' or 'host.shared', showing those elements and hiding all others.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 } else { 133 } else {
134 document.addEventListener('keydown', remoting.ConnectionStats.onKeydown, 134 document.addEventListener('keydown', remoting.ConnectionStats.onKeydown,
135 false); 135 false);
136 document.removeEventListener('visibilitychange', 136 document.removeEventListener('visibilitychange',
137 remoting.onVisibilityChanged, false); 137 remoting.onVisibilityChanged, false);
138 document.removeEventListener('webkitvisibilitychange', 138 document.removeEventListener('webkitvisibilitychange',
139 remoting.onVisibilityChanged, false); 139 remoting.onVisibilityChanged, false);
140 // TODO(jamiewalch): crbug.com/252796: Remove this once crbug.com/240772 140 // TODO(jamiewalch): crbug.com/252796: Remove this once crbug.com/240772
141 // is fixed. 141 // is fixed.
142 var htmlNode = /** @type {HTMLElement} */ (document.body.parentNode); 142 var scroller = document.getElementById('scroller');
143 htmlNode.classList.remove('no-horizontal-scroll'); 143 scroller.classList.remove('no-horizontal-scroll');
144 htmlNode.classList.remove('no-vertical-scroll'); 144 scroller.classList.remove('no-vertical-scroll');
145 } 145 }
146 146
147 remoting.testEvents.raiseEvent(remoting.testEvents.Names.uiModeChanged, mode); 147 remoting.testEvents.raiseEvent(remoting.testEvents.Names.uiModeChanged, mode);
148 }; 148 };
149 149
150 /** 150 /**
151 * Get the major mode that the app is running in. 151 * Get the major mode that the app is running in.
152 * @return {string} The app's current major mode. 152 * @return {string} The app's current major mode.
153 */ 153 */
154 remoting.getMajorMode = function() { 154 remoting.getMajorMode = function() {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 } 278 }
279 279
280 /** 280 /**
281 * @param {string} tag 281 * @param {string} tag
282 */ 282 */
283 remoting.showSetupProcessingMessage = function(tag) { 283 remoting.showSetupProcessingMessage = function(tag) {
284 var messageDiv = document.getElementById('host-setup-processing-message'); 284 var messageDiv = document.getElementById('host-setup-processing-message');
285 l10n.localizeElementFromTag(messageDiv, tag); 285 l10n.localizeElementFromTag(messageDiv, tag);
286 remoting.setMode(remoting.AppMode.HOST_SETUP_PROCESSING); 286 remoting.setMode(remoting.AppMode.HOST_SETUP_PROCESSING);
287 } 287 }
OLDNEW
« no previous file with comments | « remoting/webapp/main.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698