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 // | 5 // |
6 // AdvancedOptions class | 6 // AdvancedOptions class |
7 // Encapsulated handling of advanced options page. | 7 // Encapsulated handling of advanced options page. |
8 // | 8 // |
9 function AdvancedOptions() { | 9 function AdvancedOptions() { |
10 OptionsPage.call(this, 'advanced', templateData.advancedPage, 'advancedPage'); | 10 OptionsPage.call(this, 'advanced', templateData.advancedPage, 'advancedPage'); |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Call base class implementation to starts preference initialization. | 21 // Call base class implementation to starts preference initialization. |
22 OptionsPage.prototype.initializePage.call(this); | 22 OptionsPage.prototype.initializePage.call(this); |
23 | 23 |
24 // Setup click handlers for buttons. | 24 // Setup click handlers for buttons. |
25 $('privacyContentSettingsButton').onclick = function(event) { | 25 $('privacyContentSettingsButton').onclick = function(event) { |
26 OptionsPage.showPageByName('content'); | 26 OptionsPage.showPageByName('content'); |
27 }; | 27 }; |
28 $('privacyClearDataButton').onclick = function(event) { | 28 $('privacyClearDataButton').onclick = function(event) { |
29 OptionsPage.showOverlay('clearBrowserDataOverlay'); | 29 OptionsPage.showOverlay('clearBrowserDataOverlay'); |
30 }; | 30 }; |
31 $('proxiesConfigureButton').onclick = function(event) { | |
32 chrome.send('showNetworkProxySettings'); | |
33 }; | |
34 $('downloadLocationBrowseButton').onclick = function(event) { | 31 $('downloadLocationBrowseButton').onclick = function(event) { |
35 chrome.send('selectDownloadLocation'); | 32 chrome.send('selectDownloadLocation'); |
36 }; | 33 }; |
37 $('autoOpenFileTypesResetToDefault').onclick = function(event) { | 34 $('autoOpenFileTypesResetToDefault').onclick = function(event) { |
38 chrome.send('autoOpenFileTypesAction'); | 35 chrome.send('autoOpenFileTypesAction'); |
39 }; | 36 }; |
40 $('fontSettingsConfigureFontsOnlyButton').onclick = function(event) { | 37 $('fontSettingsConfigureFontsOnlyButton').onclick = function(event) { |
41 OptionsPage.showOverlay('fontSettingsOverlay'); | 38 OptionsPage.showOverlay('fontSettingsOverlay'); |
42 }; | 39 }; |
43 $('certificatesManageButton').onclick = function(event) { | 40 |
44 chrome.send('showManageSSLCertificates'); | 41 if (!cr.isChromeOS) { |
45 }; | 42 $('proxiesConfigureButton').onclick = function(event) { |
| 43 chrome.send('showNetworkProxySettings'); |
| 44 }; |
| 45 $('certificatesManageButton').onclick = function(event) { |
| 46 chrome.send('showManageSSLCertificates'); |
| 47 }; |
| 48 } |
46 | 49 |
47 if (cr.isWindows) { | 50 if (cr.isWindows) { |
48 $('sslCheckRevocation').onclick = function(event) { | 51 $('sslCheckRevocation').onclick = function(event) { |
49 chrome.send('checkRevocationCheckboxAction', | 52 chrome.send('checkRevocationCheckboxAction', |
50 [String($('sslCheckRevocation').checked)]); | 53 [String($('sslCheckRevocation').checked)]); |
51 }; | 54 }; |
52 $('sslUseSSL2').onclick = function(event) { | 55 $('sslUseSSL2').onclick = function(event) { |
53 chrome.send('useSSL2CheckboxAction', | 56 chrome.send('useSSL2CheckboxAction', |
54 [String($('sslUseSSL2').checked)]); | 57 [String($('sslUseSSL2').checked)]); |
55 }; | 58 }; |
(...skipping 24 matching lines...) Expand all Loading... |
80 | 83 |
81 // Set the checked state for the sslCheckRevocation checkbox. | 84 // Set the checked state for the sslCheckRevocation checkbox. |
82 function advancedOptionsSetCheckRevocationCheckboxState(checked) { | 85 function advancedOptionsSetCheckRevocationCheckboxState(checked) { |
83 $('sslCheckRevocation').checked = checked; | 86 $('sslCheckRevocation').checked = checked; |
84 } | 87 } |
85 | 88 |
86 // Set the checked state for the sslUseSSL2 checkbox. | 89 // Set the checked state for the sslUseSSL2 checkbox. |
87 function advancedOptionsSetUseSSL2CheckboxState(checked) { | 90 function advancedOptionsSetUseSSL2CheckboxState(checked) { |
88 $('sslUseSSL2').checked = checked; | 91 $('sslUseSSL2').checked = checked; |
89 } | 92 } |
OLD | NEW |