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')) { | 336 if (loadTimeData.getBoolean('showStylusSettings')) { |
337 $('note-settings-link').onclick = function(event) { | 337 $('stylus-settings-link').onclick = function(event) { |
338 PageManager.showPageByName('note-overlay'); | 338 PageManager.showPageByName('stylus-overlay'); |
339 }; | 339 }; |
340 $('note-row').hidden = false; | 340 $('stylus-row').hidden = false; |
341 } | 341 } |
342 if (loadTimeData.getBoolean('showPowerStatus')) { | 342 if (loadTimeData.getBoolean('showPowerStatus')) { |
343 $('power-settings-link').onclick = function(evt) { | 343 $('power-settings-link').onclick = function(evt) { |
344 PageManager.showPageByName('power-overlay'); | 344 PageManager.showPageByName('power-overlay'); |
345 chrome.send('coreOptionsUserMetricsAction', | 345 chrome.send('coreOptionsUserMetricsAction', |
346 ['Options_ShowPowerSettings']); | 346 ['Options_ShowPowerSettings']); |
347 }; | 347 }; |
348 $('power-row').hidden = false; | 348 $('power-row').hidden = false; |
349 } | 349 } |
350 $('keyboard-settings-button').onclick = function(evt) { | 350 $('keyboard-settings-button').onclick = function(evt) { |
(...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2411 | 2411 |
2412 settings.hidden = !isVisible; | 2412 settings.hidden = !isVisible; |
2413 }; | 2413 }; |
2414 } | 2414 } |
2415 | 2415 |
2416 // Export | 2416 // Export |
2417 return { | 2417 return { |
2418 BrowserOptions: BrowserOptions | 2418 BrowserOptions: BrowserOptions |
2419 }; | 2419 }; |
2420 }); | 2420 }); |
OLD | NEW |