Index: third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog-extracted.js |
diff --git a/third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog-extracted.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..570cf42f25510d8726f85cd9d46db9b85172d740 |
--- /dev/null |
+++ b/third_party/polymer/v1_0/components-chromium/paper-dialog/paper-dialog-extracted.js |
@@ -0,0 +1,36 @@ |
+(function() { |
+ |
+ Polymer({ |
+ |
+ is: 'paper-dialog', |
+ |
+ behaviors: [ |
+ Polymer.PaperDialogBehavior, |
+ Polymer.NeonAnimationRunnerBehavior |
+ ], |
+ |
+ listeners: { |
+ 'neon-animation-finish': '_onNeonAnimationFinish' |
+ }, |
+ |
+ _renderOpened: function() { |
+ this.cancelAnimation(); |
+ this.playAnimation('entry'); |
+ }, |
+ |
+ _renderClosed: function() { |
+ this.cancelAnimation(); |
+ this.playAnimation('exit'); |
+ }, |
+ |
+ _onNeonAnimationFinish: function() { |
+ if (this.opened) { |
+ this._finishRenderOpened(); |
+ } else { |
+ this._finishRenderClosed(); |
+ } |
+ } |
+ |
+ }); |
+ |
+})(); |