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

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 136603003: Move settings link for ChromeVox to a better location (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c0346e3c965a4c056335338bc7c9ff0e85941f5a..f6a95454329c99a604553dcf37d43e622e571063 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -424,10 +424,22 @@ cr.define('options', function() {
// Accessibility section (CrOS only).
if (cr.isChromeOS) {
+ var updateAccessibilitySettingsButton = function() {
+ $('accessibility-settings').hidden =
+ !($('accessibility-spoken-feedback-check').checked);
+ };
+ Preferences.getInstance().addEventListener(
+ 'settings.accessibility',
+ updateAccessibilitySettingsButton);
+ $('accessibility-settings-button').onclick = function(event) {
+ window.open(loadTimeData.getString('accessibilitySettingsURL'));
+ };
$('accessibility-spoken-feedback-check').onchange = function(event) {
chrome.send('spokenFeedbackChange',
[$('accessibility-spoken-feedback-check').checked]);
+ updateAccessibilitySettingsButton();
};
+ updateAccessibilitySettingsButton();
$('accessibility-high-contrast-check').onchange = function(event) {
chrome.send('highContrastChange',
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698