| OLD | NEW |
| 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 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 if (defaultControl) | 270 if (defaultControl) |
| 271 defaultControl.focus(); | 271 defaultControl.focus(); |
| 272 }); | 272 }); |
| 273 } else { | 273 } else { |
| 274 oldStep.classList.add('hidden'); | 274 oldStep.classList.add('hidden'); |
| 275 if (defaultControl) | 275 if (defaultControl) |
| 276 defaultControl.focus(); | 276 defaultControl.focus(); |
| 277 } | 277 } |
| 278 } else { | 278 } else { |
| 279 // First screen on OOBE launch. | 279 // First screen on OOBE launch. |
| 280 if (innerContainer.classList.contains('down')) { | 280 if (document.body.classList.contains('oobe-display') && |
| 281 innerContainer.classList.contains('down')) { |
| 281 innerContainer.classList.remove('down'); | 282 innerContainer.classList.remove('down'); |
| 282 innerContainer.addEventListener( | 283 innerContainer.addEventListener( |
| 283 'webkitTransitionEnd', function f(e) { | 284 'webkitTransitionEnd', function f(e) { |
| 284 innerContainer.removeEventListener('webkitTransitionEnd', f); | 285 innerContainer.removeEventListener('webkitTransitionEnd', f); |
| 285 $('progress-dots').classList.remove('down'); | 286 $('progress-dots').classList.remove('down'); |
| 286 chrome.send('loginVisible', ['oobe']); | 287 chrome.send('loginVisible', ['oobe']); |
| 287 if (defaultControl) | 288 if (defaultControl) |
| 288 defaultControl.focus(); | 289 defaultControl.focus(); |
| 289 }); | 290 }); |
| 290 } else { | 291 } else { |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 */ | 677 */ |
| 677 DisplayManager.clearUserPodPassword = function() { | 678 DisplayManager.clearUserPodPassword = function() { |
| 678 $('pod-row').clearFocusedPod(); | 679 $('pod-row').clearFocusedPod(); |
| 679 }; | 680 }; |
| 680 | 681 |
| 681 // Export | 682 // Export |
| 682 return { | 683 return { |
| 683 DisplayManager: DisplayManager | 684 DisplayManager: DisplayManager |
| 684 }; | 685 }; |
| 685 }); | 686 }); |
| OLD | NEW |