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

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

Issue 1157553003: Center the focus of the text input in magnifier screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 5 years, 6 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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698