OLD | NEW |
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 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', |
| 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 }); |
OLD | NEW |