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_shared.js"> | 10 // <include src="login_shared.js"> |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 }); |
OLD | NEW |