OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 Common OOBE controller methods. | 6 * @fileoverview Common OOBE controller methods. |
7 */ | 7 */ |
8 | 8 |
9 <include src="../../../../../ui/login/screen.js"> | 9 <include src="../../../../../ui/login/screen.js"> |
10 <include src="screen_context.js"> | 10 <include src="screen_context.js"> |
11 <include src="../user_images_grid.js"> | 11 <include src="../user_images_grid.js"> |
12 <include src="apps_menu.js"> | 12 <include src="apps_menu.js"> |
13 <include src="../../../../../ui/login/bubble.js"> | 13 <include src="../../../../../ui/login/bubble.js"> |
14 <include src="../../../../../ui/login/display_manager.js"> | 14 <include src="../../../../../ui/login/display_manager.js"> |
15 <include src="header_bar.js"> | 15 <include src="header_bar.js"> |
16 <include src="network_dropdown.js"> | 16 <include src="network_dropdown.js"> |
17 <include src="oobe_screen_reset.js"> | 17 <include src="oobe_screen_reset.js"> |
18 <include src="oobe_screen_autolaunch.js"> | 18 <include src="oobe_screen_autolaunch.js"> |
19 <include src="oobe_screen_enable_kiosk.js"> | 19 <include src="oobe_screen_enable_kiosk.js"> |
20 <include src="oobe_screen_terms_of_service.js"> | 20 <include src="oobe_screen_terms_of_service.js"> |
21 <include src="oobe_screen_user_image.js"> | 21 <include src="oobe_screen_user_image.js"> |
22 <include src="../../../../../ui/login/account_picker/screen_account_picker.js"> | 22 <include src="../../../../../ui/login/account_picker/screen_account_picker.js"> |
23 <include src="screen_app_launch_splash.js"> | 23 <include src="screen_app_launch_splash.js"> |
24 <include src="screen_error_message.js"> | 24 <include src="screen_error_message.js"> |
25 <include src="screen_gaia_signin.js"> | 25 <include src="screen_gaia_signin.js"> |
26 <include src="screen_locally_managed_user_creation.js"> | |
27 <include src="screen_password_changed.js"> | 26 <include src="screen_password_changed.js"> |
| 27 <include src="screen_supervised_user_creation.js"> |
28 <include src="screen_tpm_error.js"> | 28 <include src="screen_tpm_error.js"> |
29 <include src="screen_wrong_hwid.js"> | 29 <include src="screen_wrong_hwid.js"> |
30 <include src="screen_confirm_password.js"> | 30 <include src="screen_confirm_password.js"> |
31 <include src="screen_fatal_error.js"> | 31 <include src="screen_fatal_error.js"> |
32 <include src="../../../../../ui/login/account_picker/user_pod_row.js"> | 32 <include src="../../../../../ui/login/account_picker/user_pod_row.js"> |
33 <include src="../../../../../ui/login/resource_loader.js"> | 33 <include src="../../../../../ui/login/resource_loader.js"> |
34 | 34 |
35 cr.define('cr.ui', function() { | 35 cr.define('cr.ui', function() { |
36 var DisplayManager = cr.ui.login.DisplayManager; | 36 var DisplayManager = cr.ui.login.DisplayManager; |
37 | 37 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 /** | 151 /** |
152 * Shows password changed screen that offers migration. | 152 * Shows password changed screen that offers migration. |
153 * @param {boolean} showError Whether to show the incorrect password error. | 153 * @param {boolean} showError Whether to show the incorrect password error. |
154 */ | 154 */ |
155 Oobe.showPasswordChangedScreen = function(showError) { | 155 Oobe.showPasswordChangedScreen = function(showError) { |
156 DisplayManager.showPasswordChangedScreen(showError); | 156 DisplayManager.showPasswordChangedScreen(showError); |
157 }; | 157 }; |
158 | 158 |
159 /** | 159 /** |
160 * Shows dialog to create managed user. | 160 * Shows dialog to create a supervised user. |
161 */ | 161 */ |
162 Oobe.showManagedUserCreationScreen = function() { | 162 Oobe.showSupervisedUserCreationScreen = function() { |
163 DisplayManager.showManagedUserCreationScreen(); | 163 DisplayManager.showSupervisedUserCreationScreen(); |
164 }; | 164 }; |
165 | 165 |
166 /** | 166 /** |
167 * Shows TPM error screen. | 167 * Shows TPM error screen. |
168 */ | 168 */ |
169 Oobe.showTpmError = function() { | 169 Oobe.showTpmError = function() { |
170 DisplayManager.showTpmError(); | 170 DisplayManager.showTpmError(); |
171 }; | 171 }; |
172 | 172 |
173 /** | 173 /** |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { | 361 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { |
362 // This screen is async-loaded so we manually trigger i18n processing. | 362 // This screen is async-loaded so we manually trigger i18n processing. |
363 i18nTemplate.process($('oauth-enrollment'), loadTimeData); | 363 i18nTemplate.process($('oauth-enrollment'), loadTimeData); |
364 // Delayed binding since this isn't defined yet. | 364 // Delayed binding since this isn't defined yet. |
365 login.OAuthEnrollmentScreen.register(); | 365 login.OAuthEnrollmentScreen.register(); |
366 }); | 366 }); |
367 | 367 |
368 // Delayed binding since this isn't defined yet. | 368 // Delayed binding since this isn't defined yet. |
369 cr.ui.Oobe.initialize(); | 369 cr.ui.Oobe.initialize(); |
370 }); | 370 }); |
OLD | NEW |