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

Side by Side Diff: chrome/browser/resources/options/advanced_options.js

Issue 2884047: Revert 53990 - - Implement proxy settings dialog for Linux/Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/browser/resources/options/advanced_options.html ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
31 $('downloadLocationBrowseButton').onclick = function(event) { 34 $('downloadLocationBrowseButton').onclick = function(event) {
32 chrome.send('selectDownloadLocation'); 35 chrome.send('selectDownloadLocation');
33 }; 36 };
34 $('autoOpenFileTypesResetToDefault').onclick = function(event) { 37 $('autoOpenFileTypesResetToDefault').onclick = function(event) {
35 chrome.send('autoOpenFileTypesAction'); 38 chrome.send('autoOpenFileTypesAction');
36 }; 39 };
37 $('fontSettingsConfigureFontsOnlyButton').onclick = function(event) { 40 $('fontSettingsConfigureFontsOnlyButton').onclick = function(event) {
38 OptionsPage.showOverlay('fontSettingsOverlay'); 41 OptionsPage.showOverlay('fontSettingsOverlay');
39 }; 42 };
40 43 $('certificatesManageButton').onclick = function(event) {
41 if (!cr.isChromeOS) { 44 chrome.send('showManageSSLCertificates');
42 $('proxiesConfigureButton').onclick = function(event) { 45 };
43 chrome.send('showNetworkProxySettings');
44 };
45 $('certificatesManageButton').onclick = function(event) {
46 chrome.send('showManageSSLCertificates');
47 };
48 }
49 46
50 if (cr.isWindows) { 47 if (cr.isWindows) {
51 $('sslCheckRevocation').onclick = function(event) { 48 $('sslCheckRevocation').onclick = function(event) {
52 chrome.send('checkRevocationCheckboxAction', 49 chrome.send('checkRevocationCheckboxAction',
53 [String($('sslCheckRevocation').checked)]); 50 [String($('sslCheckRevocation').checked)]);
54 }; 51 };
55 $('sslUseSSL2').onclick = function(event) { 52 $('sslUseSSL2').onclick = function(event) {
56 chrome.send('useSSL2CheckboxAction', 53 chrome.send('useSSL2CheckboxAction',
57 [String($('sslUseSSL2').checked)]); 54 [String($('sslUseSSL2').checked)]);
58 }; 55 };
(...skipping 24 matching lines...) Expand all
83 80
84 // Set the checked state for the sslCheckRevocation checkbox. 81 // Set the checked state for the sslCheckRevocation checkbox.
85 function advancedOptionsSetCheckRevocationCheckboxState(checked) { 82 function advancedOptionsSetCheckRevocationCheckboxState(checked) {
86 $('sslCheckRevocation').checked = checked; 83 $('sslCheckRevocation').checked = checked;
87 } 84 }
88 85
89 // Set the checked state for the sslUseSSL2 checkbox. 86 // Set the checked state for the sslUseSSL2 checkbox.
90 function advancedOptionsSetUseSSL2CheckboxState(checked) { 87 function advancedOptionsSetUseSSL2CheckboxState(checked) {
91 $('sslUseSSL2').checked = checked; 88 $('sslUseSSL2').checked = checked;
92 } 89 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/advanced_options.html ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698