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 Login UI based on a stripped down OOBE controller. | 6 * @fileoverview Login UI based on a stripped down OOBE controller. |
7 */ | 7 */ |
8 | 8 |
9 var isMd = false; | 9 var isMd = false; |
10 | 10 |
11 // <include src="login_shared.js"> | 11 // <include src="login_shared.js"> |
12 // <include src="login_non_lock_shared.js"> | 12 // <include src="login_non_lock_shared.js"> |
13 // <include src="notification_card.js"> | 13 // <include src="notification_card.js"> |
14 | 14 |
| 15 /** |
| 16 * Ensures that the pin keyboard is loaded. |
| 17 * @param {object} onLoaded Callback executed when the pin keyboard is loaded. |
| 18 */ |
| 19 function ensurePinKeyboardLoaded(onLoaded) { |
| 20 'use strict'; |
| 21 |
| 22 // Wait a frame before running |onLoaded| to avoid any visual glitches. |
| 23 setTimeout(onLoaded); |
| 24 } |
| 25 |
15 cr.define('cr.ui.Oobe', function() { | 26 cr.define('cr.ui.Oobe', function() { |
16 return { | 27 return { |
17 /** | 28 /** |
18 * Initializes the OOBE flow. This will cause all C++ handlers to | 29 * Initializes the OOBE flow. This will cause all C++ handlers to |
19 * be invoked to do final setup. | 30 * be invoked to do final setup. |
20 */ | 31 */ |
21 initialize: function() { | 32 initialize: function() { |
22 cr.ui.login.DisplayManager.initialize(); | 33 cr.ui.login.DisplayManager.initialize(); |
23 login.WrongHWIDScreen.register(); | 34 login.WrongHWIDScreen.register(); |
24 login.AccountPickerScreen.register(); | 35 login.AccountPickerScreen.register(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 * Reloads content of the page. | 75 * Reloads content of the page. |
65 * @param {!Object} data New dictionary with i18n values. | 76 * @param {!Object} data New dictionary with i18n values. |
66 */ | 77 */ |
67 reloadContent: function(data) { | 78 reloadContent: function(data) { |
68 loadTimeData.overrideValues(data); | 79 loadTimeData.overrideValues(data); |
69 i18nTemplate.process(document, loadTimeData); | 80 i18nTemplate.process(document, loadTimeData); |
70 Oobe.getInstance().updateLocalizedContent_(); | 81 Oobe.getInstance().updateLocalizedContent_(); |
71 }, | 82 }, |
72 }; | 83 }; |
73 }); | 84 }); |
OLD | NEW |