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

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

Issue 2223213003: ChromeOS: Implement Accessibility Options screen of material design OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix presubmit. Created 4 years, 4 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 /** 280 /**
281 * Refreshes a11y menu state. 281 * Refreshes a11y menu state.
282 * @param {!Object} data New dictionary with a11y features state. 282 * @param {!Object} data New dictionary with a11y features state.
283 */ 283 */
284 refreshA11yInfo: function(data) { 284 refreshA11yInfo: function(data) {
285 $('high-contrast').checked = data.highContrastEnabled; 285 $('high-contrast').checked = data.highContrastEnabled;
286 $('spoken-feedback').checked = data.spokenFeedbackEnabled; 286 $('spoken-feedback').checked = data.spokenFeedbackEnabled;
287 $('screen-magnifier').checked = data.screenMagnifierEnabled; 287 $('screen-magnifier').checked = data.screenMagnifierEnabled;
288 $('large-cursor').checked = data.largeCursorEnabled; 288 $('large-cursor').checked = data.largeCursorEnabled;
289 $('virtual-keyboard').checked = data.virtualKeyboardEnabled; 289 $('virtual-keyboard').checked = data.virtualKeyboardEnabled;
290
291 $('oobe-welcome-md').a11yStatus = data;
290 }, 292 },
291 293
292 /** 294 /**
293 * Reloads content of the page (localized strings, options of the select 295 * Reloads content of the page (localized strings, options of the select
294 * controls). 296 * controls).
295 * @param {!Object} data New dictionary with i18n values. 297 * @param {!Object} data New dictionary with i18n values.
296 */ 298 */
297 reloadContent: function(data) { 299 reloadContent: function(data) {
298 // Reload global local strings, process DOM tree again. 300 // Reload global local strings, process DOM tree again.
299 loadTimeData.overrideValues(data); 301 loadTimeData.overrideValues(data);
(...skipping 29 matching lines...) Expand all
329 /** 331 /**
330 * Updates localized content of the screens. 332 * Updates localized content of the screens.
331 * Should be executed on language change. 333 * Should be executed on language change.
332 */ 334 */
333 updateLocalizedContent: function() { 335 updateLocalizedContent: function() {
334 // Buttons, headers and links. 336 // Buttons, headers and links.
335 Oobe.getInstance().updateLocalizedContent_(); 337 Oobe.getInstance().updateLocalizedContent_();
336 } 338 }
337 }; 339 };
338 }); 340 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698