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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 oldStep.classList.add('hidden'); | 243 oldStep.classList.add('hidden'); |
244 } | 244 } |
245 } else { | 245 } else { |
246 // First screen on OOBE launch. | 246 // First screen on OOBE launch. |
247 if (innerContainer.classList.contains('down')) { | 247 if (innerContainer.classList.contains('down')) { |
248 innerContainer.classList.remove('down'); | 248 innerContainer.classList.remove('down'); |
249 innerContainer.addEventListener( | 249 innerContainer.addEventListener( |
250 'webkitTransitionEnd', function f(e) { | 250 'webkitTransitionEnd', function f(e) { |
251 innerContainer.removeEventListener('webkitTransitionEnd', f); | 251 innerContainer.removeEventListener('webkitTransitionEnd', f); |
252 $('progress-dots').classList.remove('down'); | 252 $('progress-dots').classList.remove('down'); |
253 chrome.send('loginVisible'); | 253 chrome.send('loginVisible', ['oobe']); |
254 }); | 254 }); |
255 } | 255 } |
256 newHeader.classList.remove('right'); // Old OOBE. | 256 newHeader.classList.remove('right'); // Old OOBE. |
257 } | 257 } |
258 this.currentStep_ = nextStepIndex; | 258 this.currentStep_ = nextStepIndex; |
259 $('oobe').className = nextStepId; | 259 $('oobe').className = nextStepId; |
260 | 260 |
261 $('step-logo').hidden = newStep.classList.contains('no-logo'); | 261 $('step-logo').hidden = newStep.classList.contains('no-logo'); |
262 }, | 262 }, |
263 | 263 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 $('add-user-button').classList.add('button-restricted'); | 592 $('add-user-button').classList.add('button-restricted'); |
593 $('add-user-button').title = disable ? | 593 $('add-user-button').title = disable ? |
594 localStrings.getString('disabledAddUserTooltip') : ''; | 594 localStrings.getString('disabledAddUserTooltip') : ''; |
595 } | 595 } |
596 | 596 |
597 // Export | 597 // Export |
598 return { | 598 return { |
599 DisplayManager: DisplayManager | 599 DisplayManager: DisplayManager |
600 }; | 600 }; |
601 }); | 601 }); |
OLD | NEW |