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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
432 // TODO(nkostylev): Update screen headers for new OOBE design. | 432 // TODO(nkostylev): Update screen headers for new OOBE design. |
433 this.appendButtons_(screen.buttons, screenId); | 433 this.appendButtons_(screen.buttons, screenId); |
434 if (screen.updateLocalizedContent) | 434 if (screen.updateLocalizedContent) |
435 screen.updateLocalizedContent(); | 435 screen.updateLocalizedContent(); |
436 } | 436 } |
437 | 437 |
438 var currentScreenId = this.screens_[this.currentStep_]; | 438 var currentScreenId = this.screens_[this.currentStep_]; |
439 var currentScreen = $(currentScreenId); | 439 var currentScreen = $(currentScreenId); |
440 this.updateScreenSize(currentScreen); | 440 this.updateScreenSize(currentScreen); |
441 | 441 |
442 // This screen is a special case as it's not registered with the rest of | |
443 // the screens. | |
444 login.ErrorMessageScreen.updateLocalizedContent(); | |
Nikita (slow)
2013/03/26 08:31:15
How is this handled now?
dzhioev (left Google)
2013/03/26 09:48:06
Currently ErrorMessageScreen registered with other
| |
445 | |
446 // Trigger network drop-down to reload its state | 442 // Trigger network drop-down to reload its state |
447 // so that strings are reloaded. | 443 // so that strings are reloaded. |
448 // Will be reloaded if drowdown is actually shown. | 444 // Will be reloaded if drowdown is actually shown. |
449 cr.ui.DropDown.refresh(); | 445 cr.ui.DropDown.refresh(); |
450 }, | 446 }, |
451 | 447 |
452 /** | 448 /** |
453 * Prepares screens to use in login display. | 449 * Prepares screens to use in login display. |
454 */ | 450 */ |
455 prepareForLoginDisplay_: function() { | 451 prepareForLoginDisplay_: function() { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
667 */ | 663 */ |
668 DisplayManager.clearUserPodPassword = function() { | 664 DisplayManager.clearUserPodPassword = function() { |
669 $('pod-row').clearFocusedPod(); | 665 $('pod-row').clearFocusedPod(); |
670 }; | 666 }; |
671 | 667 |
672 // Export | 668 // Export |
673 return { | 669 return { |
674 DisplayManager: DisplayManager | 670 DisplayManager: DisplayManager |
675 }; | 671 }; |
676 }); | 672 }); |
OLD | NEW |