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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index b59cb45aaf82d18da27f6c6fb13f799058dbaae2..2d22188c07f23e09a63d74bb50317905f6091d61 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -668,6 +668,14 @@ cr.define('options', function() {
updateAccessibilitySettingsButton;
updateAccessibilitySettingsButton();
+ var updateScreenMagnifierCenterFocus = function() {
+ $('accessibility-screen-magnifier-center-focus-check').disabled =
+ !$('accessibility-screen-magnifier-check').checked;
+ };
+ Preferences.getInstance().addEventListener(
+ $('accessibility-screen-magnifier-check').getAttribute('pref'),
+ updateScreenMagnifierCenterFocus);
+
var updateDelayDropdown = function() {
$('accessibility-autoclick-dropdown').disabled =
!$('accessibility-autoclick-check').checked;
« 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