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 // | 9 // |
10 // AdvancedOptions class | 10 // AdvancedOptions class |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 if (cr.isWindows) { | 67 if (cr.isWindows) { |
68 $('sslCheckRevocation').onclick = function(event) { | 68 $('sslCheckRevocation').onclick = function(event) { |
69 chrome.send('checkRevocationCheckboxAction', | 69 chrome.send('checkRevocationCheckboxAction', |
70 [String($('sslCheckRevocation').checked)]); | 70 [String($('sslCheckRevocation').checked)]); |
71 }; | 71 }; |
72 $('sslUseSSL2').onclick = function(event) { | 72 $('sslUseSSL2').onclick = function(event) { |
73 chrome.send('useSSL2CheckboxAction', | 73 chrome.send('useSSL2CheckboxAction', |
74 [String($('sslUseSSL2').checked)]); | 74 [String($('sslUseSSL2').checked)]); |
75 }; | 75 }; |
| 76 $('gearSettingsConfigureGearsButton').onclick = function(event) { |
| 77 chrome.send('showGearsSettings'); |
| 78 }; |
76 } | 79 } |
77 } | 80 } |
78 }; | 81 }; |
79 | 82 |
80 // | 83 // |
81 // Chrome callbacks | 84 // Chrome callbacks |
82 // | 85 // |
83 | 86 |
84 // Set the download path. | 87 // Set the download path. |
85 AdvancedOptions.SetDownloadLocationPath = function (path) { | 88 AdvancedOptions.SetDownloadLocationPath = function (path) { |
(...skipping 20 matching lines...) Expand all Loading... |
106 AdvancedOptions.SetUseSSL2CheckboxState = function(checked) { | 109 AdvancedOptions.SetUseSSL2CheckboxState = function(checked) { |
107 $('sslUseSSL2').checked = checked; | 110 $('sslUseSSL2').checked = checked; |
108 }; | 111 }; |
109 | 112 |
110 // Export | 113 // Export |
111 return { | 114 return { |
112 AdvancedOptions: AdvancedOptions | 115 AdvancedOptions: AdvancedOptions |
113 }; | 116 }; |
114 | 117 |
115 }); | 118 }); |
OLD | NEW |