| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * @fileoverview settings-certificate-subentry represents an SSL certificate | 6 * @fileoverview settings-certificate-subentry represents an SSL certificate |
| 7 * sub-entry. | 7 * sub-entry. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * The payload of the certificate-action event that is emitted from this | 11 * The payload of the certificate-action event that is emitted from this |
| 12 * component. | 12 * component. |
| 13 * @typedef {{ | 13 * @typedef {{ |
| 14 * action: !settings.CertificateAction, | 14 * action: !settings.CertificateAction, |
| 15 * subnode: ?CertificateSubnode, | 15 * subnode: null|CertificateSubnode|NewCertificateSubNode, |
| 16 * certificateType: !settings.CertificateType | 16 * certificateType: !settings.CertificateType |
| 17 * }} | 17 * }} |
| 18 */ | 18 */ |
| 19 var CertificateActionEventDetail; | 19 var CertificateActionEventDetail; |
| 20 | 20 |
| 21 cr.define('settings', function() { | 21 cr.define('settings', function() { |
| 22 /** | 22 /** |
| 23 * Enumeration of actions that require a popup menu to be shown to the user. | 23 * Enumeration of actions that require a popup menu to be shown to the user. |
| 24 * @enum {number} | 24 * @enum {number} |
| 25 */ | 25 */ |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 */ | 147 */ |
| 148 canEdit_: function(certificateType) { | 148 canEdit_: function(certificateType) { |
| 149 return this.certificateType == settings.CertificateType.CA; | 149 return this.certificateType == settings.CertificateType.CA; |
| 150 }, | 150 }, |
| 151 | 151 |
| 152 /** @private */ | 152 /** @private */ |
| 153 closePopupMenu_: function() { | 153 closePopupMenu_: function() { |
| 154 this.$$('iron-dropdown').close(); | 154 this.$$('iron-dropdown').close(); |
| 155 }, | 155 }, |
| 156 }); | 156 }); |
| OLD | NEW |