Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 1785833002: Add 5 experimental accessibility features on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change option_name to option-name Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698