| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 (function() { | 4 (function() { |
| 5 Polymer({ | 5 Polymer({ |
| 6 is: 'viewer-pdf-toolbar', | 6 is: 'viewer-pdf-toolbar', |
| 7 | 7 |
| 8 behaviors: [ | 8 behaviors: [ |
| 9 Polymer.NeonAnimationRunnerBehavior | 9 Polymer.NeonAnimationRunnerBehavior |
| 10 ], | 10 ], |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 docLength: Number, | 42 docLength: Number, |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * Whether the toolbar is opened and visible. | 45 * Whether the toolbar is opened and visible. |
| 46 */ | 46 */ |
| 47 opened: { | 47 opened: { |
| 48 type: Boolean, | 48 type: Boolean, |
| 49 value: true | 49 value: true |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 strings: Object, |
| 53 |
| 52 animationConfig: { | 54 animationConfig: { |
| 53 value: function() { | 55 value: function() { |
| 54 return { | 56 return { |
| 55 'entry': { | 57 'entry': { |
| 56 name: 'transform-animation', | 58 name: 'transform-animation', |
| 57 node: this, | 59 node: this, |
| 58 transformFrom: 'translateY(-100%)', | 60 transformFrom: 'translateY(-100%)', |
| 59 transformTo: 'translateY(0%)', | 61 transformTo: 'translateY(0%)', |
| 60 timing: { | 62 timing: { |
| 61 easing: 'cubic-bezier(0, 0, 0.2, 1)', | 63 easing: 'cubic-bezier(0, 0, 0.2, 1)', |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 137 |
| 136 download: function() { | 138 download: function() { |
| 137 this.fire('save'); | 139 this.fire('save'); |
| 138 }, | 140 }, |
| 139 | 141 |
| 140 print: function() { | 142 print: function() { |
| 141 this.fire('print'); | 143 this.fire('print'); |
| 142 } | 144 } |
| 143 }); | 145 }); |
| 144 })(); | 146 })(); |
| OLD | NEW |