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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 $('accessibility-screen-magnifier-check').getAttribute('pref'), | 721 $('accessibility-screen-magnifier-check').getAttribute('pref'), |
722 updateScreenMagnifierCenterFocus); | 722 updateScreenMagnifierCenterFocus); |
723 | 723 |
724 var updateDelayDropdown = function() { | 724 var updateDelayDropdown = function() { |
725 $('accessibility-autoclick-dropdown').disabled = | 725 $('accessibility-autoclick-dropdown').disabled = |
726 !$('accessibility-autoclick-check').checked; | 726 !$('accessibility-autoclick-check').checked; |
727 }; | 727 }; |
728 Preferences.getInstance().addEventListener( | 728 Preferences.getInstance().addEventListener( |
729 $('accessibility-autoclick-check').getAttribute('pref'), | 729 $('accessibility-autoclick-check').getAttribute('pref'), |
730 updateDelayDropdown); | 730 updateDelayDropdown); |
| 731 $('experimental-accessibility-features').hidden = |
| 732 !loadTimeData.getBoolean('enableExperimentalAccessibilityFeatures'); |
731 } | 733 } |
732 | 734 |
733 // Display management section (CrOS only). | 735 // Display management section (CrOS only). |
734 if (cr.isChromeOS) { | 736 if (cr.isChromeOS) { |
735 $('display-options').onclick = function(event) { | 737 $('display-options').onclick = function(event) { |
736 PageManager.showPageByName('display'); | 738 PageManager.showPageByName('display'); |
737 chrome.send('coreOptionsUserMetricsAction', | 739 chrome.send('coreOptionsUserMetricsAction', |
738 ['Options_Display']); | 740 ['Options_Display']); |
739 }; | 741 }; |
740 } | 742 } |
(...skipping 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2332 if (section) | 2334 if (section) |
2333 section.hidden = true; | 2335 section.hidden = true; |
2334 }; | 2336 }; |
2335 } | 2337 } |
2336 | 2338 |
2337 // Export | 2339 // Export |
2338 return { | 2340 return { |
2339 BrowserOptions: BrowserOptions | 2341 BrowserOptions: BrowserOptions |
2340 }; | 2342 }; |
2341 }); | 2343 }); |
OLD | NEW |