Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe.js

Issue 2617823002: GRIT: put <if> and <include> behind comments in .js files to make syntactically valid JS (Closed)
Patch Set: add dep Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_shared.js"> 10 // <include src="login_shared.js">
11 <include src="login_non_lock_shared.js"> 11 // <include src="login_non_lock_shared.js">
12 <include src="oobe_screen_auto_enrollment_check.js"> 12 // <include src="oobe_screen_auto_enrollment_check.js">
13 <include src="oobe_screen_controller_pairing.js"> 13 // <include src="oobe_screen_controller_pairing.js">
14 <include src="oobe_screen_enable_debugging.js"> 14 // <include src="oobe_screen_enable_debugging.js">
15 <include src="oobe_screen_eula.js"> 15 // <include src="oobe_screen_eula.js">
16 <include src="oobe_screen_hid_detection.js"> 16 // <include src="oobe_screen_hid_detection.js">
17 <include src="oobe_screen_host_pairing.js"> 17 // <include src="oobe_screen_host_pairing.js">
18 <include src="oobe_screen_network.js"> 18 // <include src="oobe_screen_network.js">
19 <include src="oobe_screen_update.js"> 19 // <include src="oobe_screen_update.js">
20 20
21 cr.define('cr.ui.Oobe', function() { 21 cr.define('cr.ui.Oobe', function() {
22 return { 22 return {
23 /** 23 /**
24 * Setups given "select" element using the list and adds callback. 24 * Setups given "select" element using the list and adds callback.
25 * Creates option groups if needed. 25 * Creates option groups if needed.
26 * @param {!Element} select Select object to be updated. 26 * @param {!Element} select Select object to be updated.
27 * @param {!Object} list List of the options to be added. 27 * @param {!Object} list List of the options to be added.
28 * Elements with optionGroupName are considered option group. 28 * Elements with optionGroupName are considered option group.
29 * @param {string} callback Callback name which should be send to Chrome or 29 * @param {string} callback Callback name which should be send to Chrome or
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 */ 330 */
331 setMDMode_: function() { 331 setMDMode_: function() {
332 if (loadTimeData.getString('newOobeUI') == 'on') { 332 if (loadTimeData.getString('newOobeUI') == 'on') {
333 $('oobe').setAttribute('md-mode', 'true'); 333 $('oobe').setAttribute('md-mode', 'true');
334 } else { 334 } else {
335 $('oobe').removeAttribute('md-mode'); 335 $('oobe').removeAttribute('md-mode');
336 } 336 }
337 }, 337 },
338 }; 338 };
339 }); 339 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698