| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 chrome.send('enableVirtualKeyboard', [$('virtual-keyboard').checked]); | 239 chrome.send('enableVirtualKeyboard', [$('virtual-keyboard').checked]); |
| 240 e.stopPropagation(); | 240 e.stopPropagation(); |
| 241 }, | 241 }, |
| 242 | 242 |
| 243 /** | 243 /** |
| 244 * Sets usage statistics checkbox. | 244 * Sets usage statistics checkbox. |
| 245 * @param {boolean} checked Is the checkbox checked? | 245 * @param {boolean} checked Is the checkbox checked? |
| 246 */ | 246 */ |
| 247 setUsageStats: function(checked) { | 247 setUsageStats: function(checked) { |
| 248 $('usage-stats').checked = checked; | 248 $('usage-stats').checked = checked; |
| 249 $('oobe-eula-md').usageStatsChecked = checked; |
| 249 }, | 250 }, |
| 250 | 251 |
| 251 /** | 252 /** |
| 252 * Set OEM EULA URL. | 253 * Set OEM EULA URL. |
| 253 * @param {text} oemEulaUrl OEM EULA URL. | 254 * @param {text} oemEulaUrl OEM EULA URL. |
| 254 */ | 255 */ |
| 255 setOemEulaUrl: function(oemEulaUrl) { | 256 setOemEulaUrl: function(oemEulaUrl) { |
| 256 if (oemEulaUrl) { | 257 if (oemEulaUrl) { |
| 257 $('oem-eula-frame').src = oemEulaUrl; | 258 $('oem-eula-frame').src = oemEulaUrl; |
| 258 $('eulas').classList.remove('one-column'); | 259 $('eulas').classList.remove('one-column'); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 /** | 337 /** |
| 337 * Updates localized content of the screens. | 338 * Updates localized content of the screens. |
| 338 * Should be executed on language change. | 339 * Should be executed on language change. |
| 339 */ | 340 */ |
| 340 updateLocalizedContent: function() { | 341 updateLocalizedContent: function() { |
| 341 // Buttons, headers and links. | 342 // Buttons, headers and links. |
| 342 Oobe.getInstance().updateLocalizedContent_(); | 343 Oobe.getInstance().updateLocalizedContent_(); |
| 343 }, | 344 }, |
| 344 }; | 345 }; |
| 345 }); | 346 }); |
| OLD | NEW |