| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 Polymer({ | 5 Polymer({ |
| 6 is: 'viewer-error-screen', | 6 is: 'viewer-error-screen', |
| 7 properties: { | 7 properties: { |
| 8 reloadFn: Object, | 8 reloadFn: Function, |
| 9 | 9 |
| 10 strings: Object, | 10 strings: Object, |
| 11 }, | 11 }, |
| 12 | 12 |
| 13 show: function() { | 13 show: function() { |
| 14 this.$.dialog.showModal(); | 14 /** @type {!CrDialogElement} */ (this.$.dialog).showModal(); |
| 15 }, | 15 }, |
| 16 | 16 |
| 17 reload: function() { | 17 reload: function() { |
| 18 if (this.reloadFn) | 18 if (this.reloadFn) |
| 19 this.reloadFn(); | 19 this.reloadFn(); |
| 20 } | 20 } |
| 21 }); | 21 }); |
| OLD | NEW |