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

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

Issue 6155008: DOMUI: Implement the new Fonts and Encoding page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. Created 9 years, 11 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
OLDNEW
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 ///////////////////////////////////////////////////////////////////////////// 9 /////////////////////////////////////////////////////////////////////////////
10 // CertificateManagerTab class: 10 // CertificateManagerTab class:
11 11
(...skipping 21 matching lines...) Expand all
33 if (id == 'serverCertsTab') { 33 if (id == 'serverCertsTab') {
34 this.editButton.onclick = function(e) { 34 this.editButton.onclick = function(e) {
35 var selected = tree.selectedItem; 35 var selected = tree.selectedItem;
36 chrome.send('editServerCertificate', [selected.data.id]); 36 chrome.send('editServerCertificate', [selected.data.id]);
37 } 37 }
38 } else if (id == 'caCertsTab') { 38 } else if (id == 'caCertsTab') {
39 this.editButton.onclick = function(e) { 39 this.editButton.onclick = function(e) {
40 var data = tree.selectedItem.data; 40 var data = tree.selectedItem.data;
41 CertificateEditCaTrustOverlay.show(data.id, data.name); 41 CertificateEditCaTrustOverlay.show(data.id, data.name);
42 } 42 }
43 } else {
csilv 2011/01/11 21:48:43 These console changes weren't mentioned in the des
James Hawkins 2011/01/11 23:45:54 Done.
44 console.log('unknown edit button for: ' + id);
45 } 43 }
46 } 44 }
47 45
48 this.backupButton = $(id + '-backup'); 46 this.backupButton = $(id + '-backup');
49 if (this.backupButton !== null) { 47 if (this.backupButton !== null) {
50 this.backupButton.onclick = function(e) { 48 this.backupButton.onclick = function(e) {
51 var selected = tree.selectedItem; 49 var selected = tree.selectedItem;
52 chrome.send('exportPersonalCertificate', [selected.data.id]); 50 chrome.send('exportPersonalCertificate', [selected.data.id]);
53 } 51 }
54 } 52 }
(...skipping 12 matching lines...) Expand all
67 chrome.send('importPersonalCertificate', []); 65 chrome.send('importPersonalCertificate', []);
68 } 66 }
69 } else if (id == 'serverCertsTab') { 67 } else if (id == 'serverCertsTab') {
70 this.importButton.onclick = function(e) { 68 this.importButton.onclick = function(e) {
71 chrome.send('importServerCertificate', []); 69 chrome.send('importServerCertificate', []);
72 } 70 }
73 } else if (id == 'caCertsTab') { 71 } else if (id == 'caCertsTab') {
74 this.importButton.onclick = function(e) { 72 this.importButton.onclick = function(e) {
75 chrome.send('importCaCertificate', []); 73 chrome.send('importCaCertificate', []);
76 } 74 }
77 } else {
78 console.log('unknown import button for: ' + id);
79 } 75 }
80 } 76 }
81 77
82 this.exportButton = $(id + '-export'); 78 this.exportButton = $(id + '-export');
83 if (this.exportButton !== null) { 79 if (this.exportButton !== null) {
84 this.exportButton.onclick = function(e) { 80 this.exportButton.onclick = function(e) {
85 var selected = tree.selectedItem; 81 var selected = tree.selectedItem;
86 chrome.send('exportCertificate', [selected.data.id]); 82 chrome.send('exportCertificate', [selected.data.id]);
87 } 83 }
88 } 84 }
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 CertificateRestoreOverlay.show(); 191 CertificateRestoreOverlay.show();
196 }; 192 };
197 193
198 // Export 194 // Export
199 return { 195 return {
200 CertificateManagerTab: CertificateManagerTab, 196 CertificateManagerTab: CertificateManagerTab,
201 CertificateManager: CertificateManager 197 CertificateManager: CertificateManager
202 }; 198 };
203 199
204 }); 200 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698