| 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 <include src="login_common.js"></include> | 10 <include src="login_common.js"></include> |
| 11 <include src="oobe_screen_eula.js"></include> | 11 <include src="oobe_screen_eula.js"></include> |
| 12 <include src="oobe_screen_network.js"></include> | 12 <include src="oobe_screen_network.js"></include> |
| 13 <include src="oobe_screen_hid_detection.js"></include> | 13 <include src="oobe_screen_hid_detection.js"></include> |
| 14 <include src="oobe_screen_update.js"></include> | 14 <include src="oobe_screen_update.js"></include> |
| 15 <include src="oobe_screen_auto_enrollment_check.js"></include> |
| 15 | 16 |
| 16 cr.define('cr.ui.Oobe', function() { | 17 cr.define('cr.ui.Oobe', function() { |
| 17 return { | 18 return { |
| 18 /** | 19 /** |
| 19 * Setups given "select" element using the list and adds callback. | 20 * Setups given "select" element using the list and adds callback. |
| 20 * Creates option groups if needed. | 21 * Creates option groups if needed. |
| 21 * @param {!Element} select Select object to be updated. | 22 * @param {!Element} select Select object to be updated. |
| 22 * @param {!Object} list List of the options to be added. | 23 * @param {!Object} list List of the options to be added. |
| 23 * Elements with optionGroupName are considered option group. | 24 * Elements with optionGroupName are considered option group. |
| 24 * @param {string} callback Callback name which should be send to Chrome or | 25 * @param {string} callback Callback name which should be send to Chrome or |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 * Initializes the OOBE flow. This will cause all C++ handlers to | 62 * Initializes the OOBE flow. This will cause all C++ handlers to |
| 62 * be invoked to do final setup. | 63 * be invoked to do final setup. |
| 63 */ | 64 */ |
| 64 initialize: function() { | 65 initialize: function() { |
| 65 cr.ui.login.DisplayManager.initialize(); | 66 cr.ui.login.DisplayManager.initialize(); |
| 66 login.HIDDetectionScreen.register(); | 67 login.HIDDetectionScreen.register(); |
| 67 login.WrongHWIDScreen.register(); | 68 login.WrongHWIDScreen.register(); |
| 68 login.NetworkScreen.register(); | 69 login.NetworkScreen.register(); |
| 69 login.EulaScreen.register(); | 70 login.EulaScreen.register(); |
| 70 login.UpdateScreen.register(); | 71 login.UpdateScreen.register(); |
| 72 login.AutoEnrollmentCheckScreen.register(); |
| 71 login.ResetScreen.register(); | 73 login.ResetScreen.register(); |
| 72 login.AutolaunchScreen.register(); | 74 login.AutolaunchScreen.register(); |
| 73 login.KioskEnableScreen.register(); | 75 login.KioskEnableScreen.register(); |
| 74 login.AccountPickerScreen.register(); | 76 login.AccountPickerScreen.register(); |
| 75 login.GaiaSigninScreen.register(); | 77 login.GaiaSigninScreen.register(); |
| 76 login.UserImageScreen.register(/* lazyInit= */ false); | 78 login.UserImageScreen.register(/* lazyInit= */ false); |
| 77 login.ErrorMessageScreen.register(); | 79 login.ErrorMessageScreen.register(); |
| 78 login.TPMErrorMessageScreen.register(); | 80 login.TPMErrorMessageScreen.register(); |
| 79 login.PasswordChangedScreen.register(); | 81 login.PasswordChangedScreen.register(); |
| 80 login.LocallyManagedUserCreationScreen.register(); | 82 login.LocallyManagedUserCreationScreen.register(); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 /** | 269 /** |
| 268 * Updates localized content of the screens. | 270 * Updates localized content of the screens. |
| 269 * Should be executed on language change. | 271 * Should be executed on language change. |
| 270 */ | 272 */ |
| 271 updateLocalizedContent: function() { | 273 updateLocalizedContent: function() { |
| 272 // Buttons, headers and links. | 274 // Buttons, headers and links. |
| 273 Oobe.getInstance().updateLocalizedContent_(); | 275 Oobe.getInstance().updateLocalizedContent_(); |
| 274 } | 276 } |
| 275 }; | 277 }; |
| 276 }); | 278 }); |
| OLD | NEW |