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 Closure compiler typedefs. | 6 * @fileoverview Closure compiler typedefs. |
7 */ | 7 */ |
8 | 8 |
9 /** | 9 /** |
10 * The payload of the certificate-action event that is emitted from this | 10 * The payload of the 'certificate-action' event. |
11 * component. | |
12 * @typedef {{ | 11 * @typedef {{ |
13 * action: !CertificateAction, | 12 * action: !CertificateAction, |
14 * subnode: (null|CertificateSubnode|NewCertificateSubNode), | 13 * subnode: (null|CertificateSubnode|NewCertificateSubNode), |
15 * certificateType: !CertificateType | 14 * certificateType: !CertificateType, |
| 15 * anchor: !HTMLElement |
16 * }} | 16 * }} |
17 */ | 17 */ |
18 var CertificateActionEventDetail; | 18 var CertificateActionEventDetail; |
19 | 19 |
20 /** | 20 /** |
| 21 * The payload of the 'certificates-error' event. |
| 22 * @typedef {{ |
| 23 * error: (null|CertificatesError|CertificatesImportError), |
| 24 * anchor: ?HTMLElement |
| 25 * }} |
| 26 */ |
| 27 var CertificatesErrorEventDetail; |
| 28 |
| 29 /** |
21 * Enumeration of actions that require a popup menu to be shown to the user. | 30 * Enumeration of actions that require a popup menu to be shown to the user. |
22 * @enum {number} | 31 * @enum {number} |
23 */ | 32 */ |
24 var CertificateAction = { | 33 var CertificateAction = { |
25 DELETE: 0, | 34 DELETE: 0, |
26 EDIT: 1, | 35 EDIT: 1, |
27 EXPORT_PERSONAL: 2, | 36 EXPORT_PERSONAL: 2, |
28 IMPORT: 3, | 37 IMPORT: 3, |
29 }; | 38 }; |
OLD | NEW |