| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |