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 A confirmation dialog allowing the user to delete various types | 6 * @fileoverview A confirmation dialog allowing the user to delete various types |
7 * of certificates. | 7 * of certificates. |
8 */ | 8 */ |
9 Polymer({ | 9 Polymer({ |
10 is: 'settings-certificate-delete-confirmation-dialog', | 10 is: 'settings-certificate-delete-confirmation-dialog', |
11 | 11 |
12 properties: { | 12 properties: { |
13 /** @private {!settings.CertificatesBrowserProxy} */ | |
14 browserProxy_: Object, | |
15 | |
16 /** @type {!CertificateSubnode} */ | 13 /** @type {!CertificateSubnode} */ |
17 model: Object, | 14 model: Object, |
18 | 15 |
19 /** @type {!CertificateType} */ | 16 /** @type {!CertificateType} */ |
20 certificateType: String, | 17 certificateType: String, |
21 }, | 18 }, |
22 | 19 |
| 20 /** @private {?settings.CertificatesBrowserProxy} */ |
| 21 browserProxy_: null, |
| 22 |
23 /** @override */ | 23 /** @override */ |
24 ready: function() { | 24 ready: function() { |
25 this.browserProxy_ = settings.CertificatesBrowserProxyImpl.getInstance(); | 25 this.browserProxy_ = settings.CertificatesBrowserProxyImpl.getInstance(); |
26 }, | 26 }, |
27 | 27 |
28 /** @override */ | 28 /** @override */ |
29 attached: function() { | 29 attached: function() { |
30 /** @type {!CrDialogElement} */ (this.$.dialog).showModal(); | 30 /** @type {!CrDialogElement} */ (this.$.dialog).showModal(); |
31 }, | 31 }, |
32 | 32 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 function() { | 86 function() { |
87 /** @type {!CrDialogElement} */ (this.$.dialog).close(); | 87 /** @type {!CrDialogElement} */ (this.$.dialog).close(); |
88 }.bind(this), | 88 }.bind(this), |
89 /** @param {!CertificatesError} error */ | 89 /** @param {!CertificatesError} error */ |
90 function(error) { | 90 function(error) { |
91 /** @type {!CrDialogElement} */ (this.$.dialog).close(); | 91 /** @type {!CrDialogElement} */ (this.$.dialog).close(); |
92 this.fire('certificates-error', {error: error, anchor: null}); | 92 this.fire('certificates-error', {error: error, anchor: null}); |
93 }.bind(this)); | 93 }.bind(this)); |
94 }, | 94 }, |
95 }); | 95 }); |
OLD | NEW |