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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 chrome.send('coreOptionsUserMetricsAction', | 661 chrome.send('coreOptionsUserMetricsAction', |
662 ['Options_AccessibilityLearnMore']); | 662 ['Options_AccessibilityLearnMore']); |
663 }; | 663 }; |
664 $('accessibility-settings-button').onclick = function(unused_event) { | 664 $('accessibility-settings-button').onclick = function(unused_event) { |
665 window.open(loadTimeData.getString('accessibilitySettingsURL')); | 665 window.open(loadTimeData.getString('accessibilitySettingsURL')); |
666 }; | 666 }; |
667 $('accessibility-spoken-feedback-check').onchange = | 667 $('accessibility-spoken-feedback-check').onchange = |
668 updateAccessibilitySettingsButton; | 668 updateAccessibilitySettingsButton; |
669 updateAccessibilitySettingsButton(); | 669 updateAccessibilitySettingsButton(); |
670 | 670 |
| 671 var updateScreenMagnifierCenterFocus = function() { |
| 672 $('accessibility-screen-magnifier-center-focus-check').disabled = |
| 673 !$('accessibility-screen-magnifier-check').checked; |
| 674 }; |
| 675 Preferences.getInstance().addEventListener( |
| 676 $('accessibility-screen-magnifier-check').getAttribute('pref'), |
| 677 updateScreenMagnifierCenterFocus); |
| 678 |
671 var updateDelayDropdown = function() { | 679 var updateDelayDropdown = function() { |
672 $('accessibility-autoclick-dropdown').disabled = | 680 $('accessibility-autoclick-dropdown').disabled = |
673 !$('accessibility-autoclick-check').checked; | 681 !$('accessibility-autoclick-check').checked; |
674 }; | 682 }; |
675 Preferences.getInstance().addEventListener( | 683 Preferences.getInstance().addEventListener( |
676 $('accessibility-autoclick-check').getAttribute('pref'), | 684 $('accessibility-autoclick-check').getAttribute('pref'), |
677 updateDelayDropdown); | 685 updateDelayDropdown); |
678 } | 686 } |
679 | 687 |
680 // Display management section (CrOS only). | 688 // Display management section (CrOS only). |
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 } | 2263 } |
2256 button.textContent = loadTimeData.getString(strId); | 2264 button.textContent = loadTimeData.getString(strId); |
2257 }; | 2265 }; |
2258 } | 2266 } |
2259 | 2267 |
2260 // Export | 2268 // Export |
2261 return { | 2269 return { |
2262 BrowserOptions: BrowserOptions | 2270 BrowserOptions: BrowserOptions |
2263 }; | 2271 }; |
2264 }); | 2272 }); |
OLD | NEW |