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

Side by Side Diff: ui/login/display_manager.js

Issue 2533413002: cros: Small JS cleanup in lock screen code. (Closed)
Patch Set: Created 4 years 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 | « ui/login/account_picker/user_pod_row.js ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Display manager for WebUI OOBE and login. 6 * @fileoverview Display manager for WebUI OOBE and login.
7 */ 7 */
8 8
9 // TODO(xiyuan): Find a better to share those constants. 9 // TODO(xiyuan): Find a better to share those constants.
10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect';
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 get headerHidden() { 259 get headerHidden() {
260 return $('login-header-bar').hidden; 260 return $('login-header-bar').hidden;
261 }, 261 },
262 262
263 set headerHidden(hidden) { 263 set headerHidden(hidden) {
264 $('login-header-bar').hidden = hidden; 264 $('login-header-bar').hidden = hidden;
265 }, 265 },
266 266
267 set pinHidden(hidden) { 267 set pinHidden(hidden) {
268 this.virtualKeyboardShown = hidden; 268 this.virtualKeyboardShown = hidden;
269 $('pod-row').setPinHidden(hidden); 269 $('pod-row').setFocusedPodPinVisibility(!hidden);
270 }, 270 },
271 271
272 /** 272 /**
273 * Sets the current size of the client area (display size). 273 * Sets the current size of the client area (display size).
274 * @param {number} width client area width 274 * @param {number} width client area width
275 * @param {number} height client area height 275 * @param {number} height client area height
276 */ 276 */
277 setClientAreaSize: function(width, height) { 277 setClientAreaSize: function(width, height) {
278 var clientArea = $('outer-container'); 278 var clientArea = $('outer-container');
279 var bottom = parseInt(window.getComputedStyle(clientArea).bottom); 279 var bottom = parseInt(window.getComputedStyle(clientArea).bottom);
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 */ 1059 */
1060 DisplayManager.refocusCurrentPod = function() { 1060 DisplayManager.refocusCurrentPod = function() {
1061 $('pod-row').refocusCurrentPod(); 1061 $('pod-row').refocusCurrentPod();
1062 }; 1062 };
1063 1063
1064 // Export 1064 // Export
1065 return { 1065 return {
1066 DisplayManager: DisplayManager 1066 DisplayManager: DisplayManager
1067 }; 1067 };
1068 }); 1068 });
OLDNEW
« no previous file with comments | « ui/login/account_picker/user_pod_row.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698