| 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 cr.exportPath('options'); | 5 cr.exportPath('options'); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @typedef {{actionLinkText: (string|undefined), | 8 * @typedef {{actionLinkText: (string|undefined), |
| 9 * childUser: (boolean|undefined), | 9 * childUser: (boolean|undefined), |
| 10 * hasError: (boolean|undefined), | 10 * hasError: (boolean|undefined), |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 $('themes-native-button').disabled = true; | 326 $('themes-native-button').disabled = true; |
| 327 $('themes-native-button').hidden = true; | 327 $('themes-native-button').hidden = true; |
| 328 } | 328 } |
| 329 // Supervised users have just one default theme, even on Linux. So use | 329 // Supervised users have just one default theme, even on Linux. So use |
| 330 // the same button for Linux as for the other platforms. | 330 // the same button for Linux as for the other platforms. |
| 331 $('themes-reset').textContent = loadTimeData.getString('themesReset'); | 331 $('themes-reset').textContent = loadTimeData.getString('themesReset'); |
| 332 } | 332 } |
| 333 | 333 |
| 334 // Device section (ChromeOS only). | 334 // Device section (ChromeOS only). |
| 335 if (cr.isChromeOS) { | 335 if (cr.isChromeOS) { |
| 336 if (loadTimeData.getBoolean('showNoteSettings')) { |
| 337 $('note-settings-link').onclick = function(event) { |
| 338 PageManager.showPageByName('note-overlay'); |
| 339 }; |
| 340 $('note-row').hidden = false; |
| 341 } |
| 336 if (loadTimeData.getBoolean('showPowerStatus')) { | 342 if (loadTimeData.getBoolean('showPowerStatus')) { |
| 337 $('power-settings-link').onclick = function(evt) { | 343 $('power-settings-link').onclick = function(evt) { |
| 338 PageManager.showPageByName('power-overlay'); | 344 PageManager.showPageByName('power-overlay'); |
| 339 chrome.send('coreOptionsUserMetricsAction', | 345 chrome.send('coreOptionsUserMetricsAction', |
| 340 ['Options_ShowPowerSettings']); | 346 ['Options_ShowPowerSettings']); |
| 341 }; | 347 }; |
| 342 $('power-row').hidden = false; | 348 $('power-row').hidden = false; |
| 343 } | 349 } |
| 344 $('keyboard-settings-button').onclick = function(evt) { | 350 $('keyboard-settings-button').onclick = function(evt) { |
| 345 PageManager.showPageByName('keyboard-overlay'); | 351 PageManager.showPageByName('keyboard-overlay'); |
| (...skipping 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2435 | 2441 |
| 2436 settings.hidden = !isVisible; | 2442 settings.hidden = !isVisible; |
| 2437 }; | 2443 }; |
| 2438 } | 2444 } |
| 2439 | 2445 |
| 2440 // Export | 2446 // Export |
| 2441 return { | 2447 return { |
| 2442 BrowserOptions: BrowserOptions | 2448 BrowserOptions: BrowserOptions |
| 2443 }; | 2449 }; |
| 2444 }); | 2450 }); |
| OLD | NEW |