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"> |
11 <include src="oobe_screen_eula.js"></include> | 11 <include src="oobe_screen_eula.js"> |
12 <include src="oobe_screen_network.js"></include> | 12 <include src="oobe_screen_network.js"> |
13 <include src="oobe_screen_hid_detection.js"></include> | 13 <include src="oobe_screen_hid_detection.js"> |
14 <include src="oobe_screen_update.js"></include> | 14 <include src="oobe_screen_update.js"> |
15 <include src="oobe_screen_controller_pairing.js"></include> | 15 <include src="oobe_screen_controller_pairing.js"> |
16 <include src="oobe_screen_host_pairing.js"></include> | 16 <include src="oobe_screen_host_pairing.js"> |
17 <include src="oobe_screen_auto_enrollment_check.js"></include> | 17 <include src="oobe_screen_auto_enrollment_check.js"> |
18 | 18 |
19 cr.define('cr.ui.Oobe', function() { | 19 cr.define('cr.ui.Oobe', function() { |
20 return { | 20 return { |
21 /** | 21 /** |
22 * Setups given "select" element using the list and adds callback. | 22 * Setups given "select" element using the list and adds callback. |
23 * Creates option groups if needed. | 23 * Creates option groups if needed. |
24 * @param {!Element} select Select object to be updated. | 24 * @param {!Element} select Select object to be updated. |
25 * @param {!Object} list List of the options to be added. | 25 * @param {!Object} list List of the options to be added. |
26 * Elements with optionGroupName are considered option group. | 26 * Elements with optionGroupName are considered option group. |
27 * @param {string} callback Callback name which should be send to Chrome or | 27 * @param {string} callback Callback name which should be send to Chrome or |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 /** | 273 /** |
274 * Updates localized content of the screens. | 274 * Updates localized content of the screens. |
275 * Should be executed on language change. | 275 * Should be executed on language change. |
276 */ | 276 */ |
277 updateLocalizedContent: function() { | 277 updateLocalizedContent: function() { |
278 // Buttons, headers and links. | 278 // Buttons, headers and links. |
279 Oobe.getInstance().updateLocalizedContent_(); | 279 Oobe.getInstance().updateLocalizedContent_(); |
280 } | 280 } |
281 }; | 281 }; |
282 }); | 282 }); |
OLD | NEW |