| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 * @param {boolean} hidden Whether header is hidden. | 260 * @param {boolean} hidden Whether header is hidden. |
| 261 */ | 261 */ |
| 262 get headerHidden() { | 262 get headerHidden() { |
| 263 return $('login-header-bar').hidden; | 263 return $('login-header-bar').hidden; |
| 264 }, | 264 }, |
| 265 | 265 |
| 266 set headerHidden(hidden) { | 266 set headerHidden(hidden) { |
| 267 $('login-header-bar').hidden = hidden; | 267 $('login-header-bar').hidden = hidden; |
| 268 }, | 268 }, |
| 269 | 269 |
| 270 set pinHidden(hidden) { | |
| 271 this.virtualKeyboardShown = hidden; | |
| 272 $('pod-row').setFocusedPodPinVisibility(!hidden); | |
| 273 }, | |
| 274 | |
| 275 /** | 270 /** |
| 276 * Sets the current size of the client area (display size). | 271 * Sets the current size of the client area (display size). |
| 277 * @param {number} width client area width | 272 * @param {number} width client area width |
| 278 * @param {number} height client area height | 273 * @param {number} height client area height |
| 279 */ | 274 */ |
| 280 setClientAreaSize: function(width, height) { | 275 setClientAreaSize: function(width, height) { |
| 281 var clientArea = $('outer-container'); | 276 var clientArea = $('outer-container'); |
| 282 var bottom = parseInt(window.getComputedStyle(clientArea).bottom); | 277 var bottom = parseInt(window.getComputedStyle(clientArea).bottom); |
| 283 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom); | 278 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom); |
| 284 }, | 279 }, |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 */ | 1063 */ |
| 1069 DisplayManager.refocusCurrentPod = function() { | 1064 DisplayManager.refocusCurrentPod = function() { |
| 1070 $('pod-row').refocusCurrentPod(); | 1065 $('pod-row').refocusCurrentPod(); |
| 1071 }; | 1066 }; |
| 1072 | 1067 |
| 1073 // Export | 1068 // Export |
| 1074 return { | 1069 return { |
| 1075 DisplayManager: DisplayManager | 1070 DisplayManager: DisplayManager |
| 1076 }; | 1071 }; |
| 1077 }); | 1072 }); |
| OLD | NEW |