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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 */ | 195 */ |
196 allowToggleVersion_: false, | 196 allowToggleVersion_: false, |
197 | 197 |
198 /** | 198 /** |
199 * Whether keyboard navigation flow is enforced. | 199 * Whether keyboard navigation flow is enforced. |
200 * @type {boolean} | 200 * @type {boolean} |
201 */ | 201 */ |
202 forceKeyboardFlow_: false, | 202 forceKeyboardFlow_: false, |
203 | 203 |
204 /** | 204 /** |
| 205 * Whether the virtual keyboard is displayed. |
| 206 * @type {boolean} |
| 207 */ |
| 208 virtualKeyboardShown: false, |
| 209 |
| 210 /** |
205 * Type of UI. | 211 * Type of UI. |
206 * @type {string} | 212 * @type {string} |
207 */ | 213 */ |
208 displayType_: DISPLAY_TYPE.UNKNOWN, | 214 displayType_: DISPLAY_TYPE.UNKNOWN, |
209 | 215 |
210 /** | 216 /** |
211 * Error message (bubble) was shown. This is checked in tests. | 217 * Error message (bubble) was shown. This is checked in tests. |
212 */ | 218 */ |
213 errorMessageWasShownForTesting_: false, | 219 errorMessageWasShownForTesting_: false, |
214 | 220 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 * @param {boolean} hidden Whether header is hidden. | 253 * @param {boolean} hidden Whether header is hidden. |
248 */ | 254 */ |
249 get headerHidden() { | 255 get headerHidden() { |
250 return $('login-header-bar').hidden; | 256 return $('login-header-bar').hidden; |
251 }, | 257 }, |
252 | 258 |
253 set headerHidden(hidden) { | 259 set headerHidden(hidden) { |
254 $('login-header-bar').hidden = hidden; | 260 $('login-header-bar').hidden = hidden; |
255 }, | 261 }, |
256 | 262 |
| 263 set pinHidden(hidden) { |
| 264 this.virtualKeyboardShown = hidden; |
| 265 $('pod-row').setPinHidden(hidden); |
| 266 }, |
| 267 |
257 /** | 268 /** |
258 * Sets the current size of the client area (display size). | 269 * Sets the current size of the client area (display size). |
259 * @param {number} width client area width | 270 * @param {number} width client area width |
260 * @param {number} height client area height | 271 * @param {number} height client area height |
261 */ | 272 */ |
262 setClientAreaSize: function(width, height) { | 273 setClientAreaSize: function(width, height) { |
263 var clientArea = $('outer-container'); | 274 var clientArea = $('outer-container'); |
264 var bottom = parseInt(window.getComputedStyle(clientArea).bottom); | 275 var bottom = parseInt(window.getComputedStyle(clientArea).bottom); |
265 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom); | 276 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom); |
266 }, | 277 }, |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 */ | 1047 */ |
1037 DisplayManager.refocusCurrentPod = function() { | 1048 DisplayManager.refocusCurrentPod = function() { |
1038 $('pod-row').refocusCurrentPod(); | 1049 $('pod-row').refocusCurrentPod(); |
1039 }; | 1050 }; |
1040 | 1051 |
1041 // Export | 1052 // Export |
1042 return { | 1053 return { |
1043 DisplayManager: DisplayManager | 1054 DisplayManager: DisplayManager |
1044 }; | 1055 }; |
1045 }); | 1056 }); |
OLD | NEW |