| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 chrome.send('coreOptionsUserMetricsAction', | 675 chrome.send('coreOptionsUserMetricsAction', |
| 676 ['Options_AccessibilityLearnMore']); | 676 ['Options_AccessibilityLearnMore']); |
| 677 }; | 677 }; |
| 678 $('accessibility-settings-button').onclick = function(unused_event) { | 678 $('accessibility-settings-button').onclick = function(unused_event) { |
| 679 window.open(loadTimeData.getString('accessibilitySettingsURL')); | 679 window.open(loadTimeData.getString('accessibilitySettingsURL')); |
| 680 }; | 680 }; |
| 681 $('accessibility-spoken-feedback-check').onchange = | 681 $('accessibility-spoken-feedback-check').onchange = |
| 682 updateAccessibilitySettingsButton; | 682 updateAccessibilitySettingsButton; |
| 683 updateAccessibilitySettingsButton(); | 683 updateAccessibilitySettingsButton(); |
| 684 | 684 |
| 685 var updateScreenMagnifierCenterFocus = function() { |
| 686 $('accessibility-screen-magnifier-center-focus-check').disabled = |
| 687 !$('accessibility-screen-magnifier-check').checked; |
| 688 }; |
| 689 Preferences.getInstance().addEventListener( |
| 690 $('accessibility-screen-magnifier-check').getAttribute('pref'), |
| 691 updateScreenMagnifierCenterFocus); |
| 692 |
| 685 var updateDelayDropdown = function() { | 693 var updateDelayDropdown = function() { |
| 686 $('accessibility-autoclick-dropdown').disabled = | 694 $('accessibility-autoclick-dropdown').disabled = |
| 687 !$('accessibility-autoclick-check').checked; | 695 !$('accessibility-autoclick-check').checked; |
| 688 }; | 696 }; |
| 689 Preferences.getInstance().addEventListener( | 697 Preferences.getInstance().addEventListener( |
| 690 $('accessibility-autoclick-check').getAttribute('pref'), | 698 $('accessibility-autoclick-check').getAttribute('pref'), |
| 691 updateDelayDropdown); | 699 updateDelayDropdown); |
| 692 } | 700 } |
| 693 | 701 |
| 694 // Display management section (CrOS only). | 702 // Display management section (CrOS only). |
| (...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2269 } | 2277 } |
| 2270 button.textContent = loadTimeData.getString(strId); | 2278 button.textContent = loadTimeData.getString(strId); |
| 2271 }; | 2279 }; |
| 2272 } | 2280 } |
| 2273 | 2281 |
| 2274 // Export | 2282 // Export |
| 2275 return { | 2283 return { |
| 2276 BrowserOptions: BrowserOptions | 2284 BrowserOptions: BrowserOptions |
| 2277 }; | 2285 }; |
| 2278 }); | 2286 }); |
| OLD | NEW |