Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js

Issue 2123983003: PDF: Replace usage of i18nTemplate with Polymer data binding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comment Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698