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

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

Issue 2909503003: WebUI: Enable ESLint rule for missing semicolons. (Closed)
Patch Set: Undo local_ntp changes from this CL. Created 3 years, 7 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">
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 * handle a11y menu checkboxes keypress event by simulating click event. 232 * handle a11y menu checkboxes keypress event by simulating click event.
233 */ 233 */
234 handleA11yKeyPress: function(e) { 234 handleA11yKeyPress: function(e) {
235 if (e.key != 'Enter') 235 if (e.key != 'Enter')
236 return; 236 return;
237 237
238 if (e.target.tagName != 'INPUT' || e.target.type != 'checkbox') 238 if (e.target.tagName != 'INPUT' || e.target.type != 'checkbox')
239 return; 239 return;
240 240
241 // Simulate click on the checkbox. 241 // Simulate click on the checkbox.
242 e.target.click() 242 e.target.click();
243 }, 243 },
244 244
245 /** 245 /**
246 * Spoken feedback checkbox handler. 246 * Spoken feedback checkbox handler.
247 */ 247 */
248 handleSpokenFeedbackClick: function(e) { 248 handleSpokenFeedbackClick: function(e) {
249 chrome.send('enableSpokenFeedback', [$('spoken-feedback').checked]); 249 chrome.send('enableSpokenFeedback', [$('spoken-feedback').checked]);
250 e.stopPropagation(); 250 e.stopPropagation();
251 }, 251 },
252 252
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 $('oobe-shield').setAttribute('md-mode', 'true'); 383 $('oobe-shield').setAttribute('md-mode', 'true');
384 $('popup-overlay').setAttribute('md-mode', 'true'); 384 $('popup-overlay').setAttribute('md-mode', 'true');
385 } else { 385 } else {
386 $('oobe').removeAttribute('md-mode'); 386 $('oobe').removeAttribute('md-mode');
387 $('oobe-shield').removeAttribute('md-mode'); 387 $('oobe-shield').removeAttribute('md-mode');
388 $('popup-overlay').removeAttribute('md-mode'); 388 $('popup-overlay').removeAttribute('md-mode');
389 } 389 }
390 }, 390 },
391 }; 391 };
392 }); 392 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698