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

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

Issue 6381007: Make the accessibility checkbox affect LocalState rather than the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/browser/resources/options/chromeos_system_options.js
===================================================================
--- chrome/browser/resources/options/chromeos_system_options.js (revision 72316)
+++ chrome/browser/resources/options/chromeos_system_options.js (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -43,9 +43,24 @@
$('modifier-keys-button').onclick = function(event) {
OptionsPage.showOverlay('languageCustomizeModifierKeysOverlay');
};
+ $('accesibility-check').onchange = function(event) {
+ chrome.send('accessibilityChange',
+ [String($('accesibility-check').checked)]);
+ };
}
};
+ //
+ // Chrome callbacks
+ //
+
+ /**
+ * Set the initial state of the accessibility checkbox.
+ */
+ SystemOptions.SetAccessibilityCheckboxState = function(checked) {
+ $('accesibility-check').checked = checked;
+ };
+
// Export
return {
SystemOptions: SystemOptions

Powered by Google App Engine
This is Rietveld 408576698