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

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

Issue 10201014: Implement High Contrast mode for Chrome OS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code review fix Created 8 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/options2/browser_options.js
diff --git a/chrome/browser/resources/options2/browser_options.js b/chrome/browser/resources/options2/browser_options.js
index 35f7510e2ea4e09118632099c9e23ddf8120a36c..ca9af7fc869f7c52c5ac1988c86a70f626c33b74 100644
--- a/chrome/browser/resources/options2/browser_options.js
+++ b/chrome/browser/resources/options2/browser_options.js
@@ -466,6 +466,11 @@ cr.define('options', function() {
chrome.send('spokenFeedbackChange',
[$('accessibility-spoken-feedback-check').checked]);
};
+
+ $('accessibility-high-contrast-check').onchange = function(event) {
+ chrome.send('highContrastChange',
+ [$('accessibility-high-contrast-check').checked]);
+ };
}
// Background mode section.
@@ -1201,7 +1206,7 @@ cr.define('options', function() {
* @private
*/
setHighContrastCheckboxState_: function(checked) {
- // TODO(zork): Update UI
+ $('accessibility-high-contrast-check').checked = checked;
},
/**

Powered by Google App Engine
This is Rietveld 408576698