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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 ///////////////////////////////////////////////////////////////////////////// 8 /////////////////////////////////////////////////////////////////////////////
9 // SystemOptions class: 9 // SystemOptions class:
10 10
(...skipping 25 matching lines...) Expand all
36 if (!AccountsOptions.currentUserIsOwner()) 36 if (!AccountsOptions.currentUserIsOwner())
37 timezone.disabled = true; 37 timezone.disabled = true;
38 } 38 }
39 39
40 $('language-button').onclick = function(event) { 40 $('language-button').onclick = function(event) {
41 OptionsPage.showPageByName('language'); 41 OptionsPage.showPageByName('language');
42 }; 42 };
43 $('modifier-keys-button').onclick = function(event) { 43 $('modifier-keys-button').onclick = function(event) {
44 OptionsPage.showOverlay('languageCustomizeModifierKeysOverlay'); 44 OptionsPage.showOverlay('languageCustomizeModifierKeysOverlay');
45 }; 45 };
46 $('accesibility-check').onchange = function(event) {
47 chrome.send('accessibilityChange', [$('accesibility-check').value]);
csilv 2011/01/24 18:37:00 Instead of returning the 'value' attribute, i'd pr
dmazzoni 2011/01/24 18:46:10 Done.
48 };
46 } 49 }
47 }; 50 };
48 51
52 //
53 // Chrome callbacks
54 //
55
56 /**
57 * Set the initial state of the accessibility checkbox.
58 */
59 SystemOptions.SetAccessibilityCheckboxState = function(checked) {
60 $('accesibility-check').checked = checked;
61 };
62
49 // Export 63 // Export
50 return { 64 return {
51 SystemOptions: SystemOptions 65 SystemOptions: SystemOptions
52 }; 66 };
53 67
54 }); 68 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698