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

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

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js
diff --git a/chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js b/chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js
index d4e8cbd663715bd798986356528b11b0a46e62fb..22aaafdd451323e589283c03aa2d1acd565a1c67 100644
--- a/chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js
+++ b/chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js
@@ -5,18 +5,13 @@
Polymer({
is: 'viewer-pdf-toolbar',
- behaviors: [
- Polymer.NeonAnimationRunnerBehavior
- ],
+ behaviors: [Polymer.NeonAnimationRunnerBehavior],
properties: {
/**
* The current loading progress of the PDF document (0 - 100).
*/
- loadProgress: {
- type: Number,
- observer: 'loadProgressChanged'
- },
+ loadProgress: {type: Number, observer: 'loadProgressChanged'},
/**
* The title of the PDF document.
@@ -31,10 +26,7 @@
/**
* Tree of PDF bookmarks (or null if the document has no bookmarks).
*/
- bookmarks: {
- type: Object,
- value: null
- },
+ bookmarks: {type: Object, value: null},
/**
* The number of pages in the PDF document.
@@ -44,10 +36,7 @@
/**
* Whether the toolbar is opened and visible.
*/
- opened: {
- type: Boolean,
- value: true
- },
+ opened: {type: Boolean, value: true},
strings: Object,
@@ -59,27 +48,19 @@
node: this,
transformFrom: 'translateY(-100%)',
transformTo: 'translateY(0%)',
- timing: {
- easing: 'cubic-bezier(0, 0, 0.2, 1)',
- duration: 250
- }
+ timing: {easing: 'cubic-bezier(0, 0, 0.2, 1)', duration: 250}
},
'exit': {
name: 'slide-up-animation',
node: this,
- timing: {
- easing: 'cubic-bezier(0.4, 0, 1, 1)',
- duration: 250
- }
+ timing: {easing: 'cubic-bezier(0.4, 0, 1, 1)', duration: 250}
}
};
}
}
},
- listeners: {
- 'neon-animation-finish': '_onAnimationFinished'
- },
+ listeners: {'neon-animation-finish': '_onAnimationFinished'},
_onAnimationFinished: function() {
this.style.transform = this.opened ? 'none' : 'translateY(-100%)';

Powered by Google App Engine
This is Rietveld 408576698