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"></include> |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 /** | 221 /** |
222 * Refreshes a11y menu state. | 222 * Refreshes a11y menu state. |
223 * @param {!Object} data New dictionary with a11y features state. | 223 * @param {!Object} data New dictionary with a11y features state. |
224 */ | 224 */ |
225 refreshA11yInfo: function(data) { | 225 refreshA11yInfo: function(data) { |
226 $('high-contrast').checked = data.highContrastEnabled; | 226 $('high-contrast').checked = data.highContrastEnabled; |
227 $('spoken-feedback').checked = data.spokenFeedbackEnabled; | 227 $('spoken-feedback').checked = data.spokenFeedbackEnabled; |
228 $('screen-magnifier').checked = data.screenMagnifierEnabled; | 228 $('screen-magnifier').checked = data.screenMagnifierEnabled; |
229 $('large-cursor').checked = data.largeCursorEnabled; | 229 $('large-cursor').checked = data.largeCursorEnabled; |
| 230 $('virtual-keyboard').checked = data.virtualKeyboardEnabled; |
230 }, | 231 }, |
231 | 232 |
232 /** | 233 /** |
233 * Reloads content of the page (localized strings, options of the select | 234 * Reloads content of the page (localized strings, options of the select |
234 * controls). | 235 * controls). |
235 * @param {!Object} data New dictionary with i18n values. | 236 * @param {!Object} data New dictionary with i18n values. |
236 */ | 237 */ |
237 reloadContent: function(data) { | 238 reloadContent: function(data) { |
238 // Reload global local strings, process DOM tree again. | 239 // Reload global local strings, process DOM tree again. |
239 loadTimeData.overrideValues(data); | 240 loadTimeData.overrideValues(data); |
(...skipping 11 matching lines...) Expand all Loading... |
251 /** | 252 /** |
252 * Updates localized content of the screens. | 253 * Updates localized content of the screens. |
253 * Should be executed on language change. | 254 * Should be executed on language change. |
254 */ | 255 */ |
255 updateLocalizedContent: function() { | 256 updateLocalizedContent: function() { |
256 // Buttons, headers and links. | 257 // Buttons, headers and links. |
257 Oobe.getInstance().updateLocalizedContent_(); | 258 Oobe.getInstance().updateLocalizedContent_(); |
258 } | 259 } |
259 }; | 260 }; |
260 }); | 261 }); |
OLD | NEW |