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 Out of the box experience flow (OOBE). | 6 * @fileoverview Out of the box experience flow (OOBE). |
7 * This is the main code for the OOBE WebUI implementation. | 7 * This is the main code for the OOBE WebUI implementation. |
8 */ | 8 */ |
9 | 9 |
10 /** | 10 /** |
11 * Setting WAIT_FOR_POLYMER to 'true' will delay screens' registration until | 11 * Setting WAIT_FOR_POLYMER to 'true' will delay screens' registration until |
12 * Polymer is loaded. | 12 * Polymer is loaded. |
13 */ | 13 */ |
14 /* @const */ var WAIT_FOR_POLYMER = true; | 14 /* @const */ var WAIT_FOR_POLYMER = true; |
15 | 15 |
16 <include src="login_common.js"> | 16 <include src="login_common.js"> |
| 17 <include src="oobe_screen_auto_enrollment_check.js"> |
| 18 <include src="oobe_screen_controller_pairing.js"> |
| 19 <include src="oobe_screen_enable_debugging.js"> |
17 <include src="oobe_screen_eula.js"> | 20 <include src="oobe_screen_eula.js"> |
| 21 <include src="oobe_screen_hid_detection.js"> |
| 22 <include src="oobe_screen_host_pairing.js"> |
18 <include src="oobe_screen_network.js"> | 23 <include src="oobe_screen_network.js"> |
19 <include src="oobe_screen_hid_detection.js"> | |
20 <include src="oobe_screen_update.js"> | 24 <include src="oobe_screen_update.js"> |
21 <include src="oobe_screen_controller_pairing.js"> | |
22 <include src="oobe_screen_host_pairing.js"> | |
23 <include src="oobe_screen_auto_enrollment_check.js"> | |
24 | 25 |
25 cr.define('cr.ui.Oobe', function() { | 26 cr.define('cr.ui.Oobe', function() { |
26 return { | 27 return { |
27 /** | 28 /** |
28 * Setups given "select" element using the list and adds callback. | 29 * Setups given "select" element using the list and adds callback. |
29 * Creates option groups if needed. | 30 * Creates option groups if needed. |
30 * @param {!Element} select Select object to be updated. | 31 * @param {!Element} select Select object to be updated. |
31 * @param {!Object} list List of the options to be added. | 32 * @param {!Object} list List of the options to be added. |
32 * Elements with optionGroupName are considered option group. | 33 * Elements with optionGroupName are considered option group. |
33 * @param {string} callback Callback name which should be send to Chrome or | 34 * @param {string} callback Callback name which should be send to Chrome or |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 * be invoked to do final setup. | 72 * be invoked to do final setup. |
72 */ | 73 */ |
73 initialize: function() { | 74 initialize: function() { |
74 cr.ui.login.DisplayManager.initialize(); | 75 cr.ui.login.DisplayManager.initialize(); |
75 login.HIDDetectionScreen.register(); | 76 login.HIDDetectionScreen.register(); |
76 login.WrongHWIDScreen.register(); | 77 login.WrongHWIDScreen.register(); |
77 login.NetworkScreen.register(); | 78 login.NetworkScreen.register(); |
78 login.EulaScreen.register(); | 79 login.EulaScreen.register(); |
79 login.UpdateScreen.register(); | 80 login.UpdateScreen.register(); |
80 login.AutoEnrollmentCheckScreen.register(); | 81 login.AutoEnrollmentCheckScreen.register(); |
| 82 login.EnableDebuggingScreen.register(); |
81 login.ResetScreen.register(); | 83 login.ResetScreen.register(); |
82 login.AutolaunchScreen.register(); | 84 login.AutolaunchScreen.register(); |
83 login.KioskEnableScreen.register(); | 85 login.KioskEnableScreen.register(); |
84 login.AccountPickerScreen.register(); | 86 login.AccountPickerScreen.register(); |
85 login.GaiaSigninScreen.register(); | 87 login.GaiaSigninScreen.register(); |
86 login.UserImageScreen.register(/* lazyInit= */ false); | 88 login.UserImageScreen.register(/* lazyInit= */ false); |
87 login.ErrorMessageScreen.register(); | 89 login.ErrorMessageScreen.register(); |
88 login.TPMErrorMessageScreen.register(); | 90 login.TPMErrorMessageScreen.register(); |
89 login.PasswordChangedScreen.register(); | 91 login.PasswordChangedScreen.register(); |
90 login.SupervisedUserCreationScreen.register(); | 92 login.SupervisedUserCreationScreen.register(); |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 /** | 291 /** |
290 * Updates localized content of the screens. | 292 * Updates localized content of the screens. |
291 * Should be executed on language change. | 293 * Should be executed on language change. |
292 */ | 294 */ |
293 updateLocalizedContent: function() { | 295 updateLocalizedContent: function() { |
294 // Buttons, headers and links. | 296 // Buttons, headers and links. |
295 Oobe.getInstance().updateLocalizedContent_(); | 297 Oobe.getInstance().updateLocalizedContent_(); |
296 } | 298 } |
297 }; | 299 }; |
298 }); | 300 }); |
OLD | NEW |