| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * CertificateEditCaTrustOverlay class | 9 * CertificateEditCaTrustOverlay class |
| 10 * Encapsulated handling of the 'edit ca trust' and 'import ca' overlay pages. | 10 * Encapsulated handling of the 'edit ca trust' and 'import ca' overlay pages. |
| 11 * @class | 11 * @class |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 cancelImport_: function() { | 89 cancelImport_: function() { |
| 90 chrome.send('cancelImportExportCertificate'); | 90 chrome.send('cancelImportExportCertificate'); |
| 91 this.dismissOverlay_(); | 91 this.dismissOverlay_(); |
| 92 }, | 92 }, |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 /** | 95 /** |
| 96 * Callback from CertificateManagerHandler with the trust values. | 96 * Callback from CertificateManagerHandler with the trust values. |
| 97 * @param {boolean} trustSSL The initial value of SSL trust checkbox. | 97 * @param {boolean} trustSSL The initial value of SSL trust checkbox. |
| 98 * @param {boolean} trustEmail The initial value of Email trust checkbox. | 98 * @param {boolean} trustEmail The initial value of Email trust checkbox. |
| 99 * @param {boolean} trustObjSign The initial value of Object Signing trust | 99 * @param {boolean} trustObjSign The initial value of Object Signing trust. |
| 100 */ | 100 */ |
| 101 CertificateEditCaTrustOverlay.populateTrust = function( | 101 CertificateEditCaTrustOverlay.populateTrust = function( |
| 102 trustSSL, trustEmail, trustObjSign) { | 102 trustSSL, trustEmail, trustObjSign) { |
| 103 $('certificateCaTrustSSLCheckbox').checked = trustSSL; | 103 $('certificateCaTrustSSLCheckbox').checked = trustSSL; |
| 104 $('certificateCaTrustEmailCheckbox').checked = trustEmail; | 104 $('certificateCaTrustEmailCheckbox').checked = trustEmail; |
| 105 $('certificateCaTrustObjSignCheckbox').checked = trustObjSign; | 105 $('certificateCaTrustObjSignCheckbox').checked = trustObjSign; |
| 106 CertificateEditCaTrustOverlay.getInstance().enableInputs_(true); | 106 CertificateEditCaTrustOverlay.getInstance().enableInputs_(true); |
| 107 } | 107 } |
| 108 | 108 |
| 109 /** | 109 /** |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 CertificateEditCaTrustOverlay.dismiss = function() { | 156 CertificateEditCaTrustOverlay.dismiss = function() { |
| 157 CertificateEditCaTrustOverlay.getInstance().dismissOverlay_(); | 157 CertificateEditCaTrustOverlay.getInstance().dismissOverlay_(); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 // Export | 160 // Export |
| 161 return { | 161 return { |
| 162 CertificateEditCaTrustOverlay: CertificateEditCaTrustOverlay | 162 CertificateEditCaTrustOverlay: CertificateEditCaTrustOverlay |
| 163 }; | 163 }; |
| 164 }); | 164 }); |
| OLD | NEW |