Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-dialog / paper-dialog-extracted.js
bloba91d6ce17e38ce535da11613a81f19fae0e91fae
1 (function() {
3   Polymer({
5     is: 'paper-dialog',
7     behaviors: [
8       Polymer.PaperDialogBehavior,
9       Polymer.NeonAnimationRunnerBehavior
10     ],
12     listeners: {
13       'neon-animation-finish': '_onNeonAnimationFinish'
14     },
16     _renderOpened: function() {
17       if (this.withBackdrop) {
18         this.backdropElement.open();
19       }
20       this.playAnimation('entry');
21     },
23     _renderClosed: function() {
24       if (this.withBackdrop) {
25         this.backdropElement.close();
26       }
27       this.playAnimation('exit');
28     },
30     _onNeonAnimationFinish: function() {
31       if (this.opened) {
32         this._finishRenderOpened();
33       } else {
34         this._finishRenderClosed();
35       }
36     }
38   });
40 })();