OLD | NEW |
---|---|
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 Loading... | |
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 }); |
OLD | NEW |