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

Unified Diff: third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 6 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: third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js
diff --git a/third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js b/third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js
deleted file mode 100644
index 4b9204e6cde833c8fbfc373dcb85f76d76df222f..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
- Polymer('paper-progress', {
-
- /**
- * The number that represents the current secondary progress.
- *
- * @attribute secondaryProgress
- * @type number
- * @default 0
- */
- secondaryProgress: 0,
-
- /**
- * Use an indeterminate progress indicator.
- *
- * @attribute indeterminate
- * @type boolean
- * @default false
- */
- indeterminate: false,
-
- step: 0,
-
- observe: {
- 'value secondaryProgress min max indeterminate': 'update'
- },
-
- update: function() {
- this.super();
- this.secondaryProgress = this.clampValue(this.secondaryProgress);
- this.secondaryRatio = this.calcRatio(this.secondaryProgress) * 100;
-
- // If we use attribute/class binding, the animation sometimes doesn't translate properly
- // on Safari 7.1. So instead, we toggle the class here in the update method.
- this.$.activeProgress.classList.toggle('indeterminate', this.indeterminate);
- },
-
- transformProgress: function(progress, ratio) {
- var transform = 'scaleX(' + (ratio / 100) + ')';
- progress.style.transform = progress.style.webkitTransform = transform;
- },
-
- ratioChanged: function() {
- this.transformProgress(this.$.activeProgress, this.ratio);
- },
-
- secondaryRatioChanged: function() {
- this.transformProgress(this.$.secondaryProgress, this.secondaryRatio);
- }
-
- });
-
-

Powered by Google App Engine
This is Rietveld 408576698