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

Unified Diff: third_party/polymer/components-chromium/core-range/core-range-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/core-range/core-range-extracted.js
diff --git a/third_party/polymer/components-chromium/core-range/core-range-extracted.js b/third_party/polymer/components-chromium/core-range/core-range-extracted.js
deleted file mode 100644
index 5650bfdf95b7a268428da9fe51648a677fe11bd8..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/core-range/core-range-extracted.js
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
- Polymer('core-range', {
-
- /**
- * The number that represents the current value.
- *
- * @attribute value
- * @type number
- * @default 0
- */
- value: 0,
-
- /**
- * The number that indicates the minimum value of the range.
- *
- * @attribute min
- * @type number
- * @default 0
- */
- min: 0,
-
- /**
- * The number that indicates the maximum value of the range.
- *
- * @attribute max
- * @type number
- * @default 100
- */
- max: 100,
-
- /**
- * Specifies the value granularity of the range's value.
- *
- * @attribute step
- * @type number
- * @default 1
- */
- step: 1,
-
- /**
- * Returns the ratio of the value.
- *
- * @attribute ratio
- * @type number
- * @default 0
- */
- ratio: 0,
-
- observe: {
- 'value min max step': 'update'
- },
-
- calcRatio: function(value) {
- return (this.clampValue(value) - this.min) / (this.max - this.min);
- },
-
- clampValue: function(value) {
- return Math.min(this.max, Math.max(this.min, this.calcStep(value)));
- },
-
- calcStep: function(value) {
- return this.step ? (Math.round(value / this.step) / (1 / this.step)) : value;
- },
-
- validateValue: function() {
- var v = this.clampValue(this.value);
- this.value = this.oldValue = isNaN(v) ? this.oldValue : v;
- return this.value !== v;
- },
-
- update: function() {
- this.validateValue();
- this.ratio = this.calcRatio(this.value) * 100;
- }
-
- });
-

Powered by Google App Engine
This is Rietveld 408576698