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

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) 2011 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
11 /** 11 /**
(...skipping 24 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',
48 [String($('accesibility-check').checked)]);
49 };
46 } 50 }
47 }; 51 };
48 52
53 //
54 // Chrome callbacks
55 //
56
57 /**
58 * Set the initial state of the accessibility checkbox.
59 */
60 SystemOptions.SetAccessibilityCheckboxState = function(checked) {
61 $('accesibility-check').checked = checked;
62 };
63
49 // Export 64 // Export
50 return { 65 return {
51 SystemOptions: SystemOptions 66 SystemOptions: SystemOptions
52 }; 67 };
53 68
54 }); 69 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698