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

Unified Diff: third_party/polymer/components-chromium/core-toolbar/core-toolbar-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-toolbar/core-toolbar-extracted.js
diff --git a/third_party/polymer/components-chromium/core-toolbar/core-toolbar-extracted.js b/third_party/polymer/components-chromium/core-toolbar/core-toolbar-extracted.js
deleted file mode 100644
index d43508c6470e065613d7b8b6cb9af30b088f6202..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/core-toolbar/core-toolbar-extracted.js
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-(function() {
-
- Polymer('core-toolbar', {
-
- /**
- * Controls how the items are aligned horizontally.
- * Options are `start`, `center`, `end`, `between` and `around`.
- *
- * @attribute justify
- * @type string
- * @default ''
- */
- justify: '',
-
- /**
- * Controls how the items are aligned horizontally when they are placed
- * in the middle.
- * Options are `start`, `center`, `end`, `between` and `around`.
- *
- * @attribute middleJustify
- * @type string
- * @default ''
- */
- middleJustify: '',
-
- /**
- * Controls how the items are aligned horizontally when they are placed
- * at the bottom.
- * Options are `start`, `center`, `end`, `between` and `around`.
- *
- * @attribute bottomJustify
- * @type string
- * @default ''
- */
- bottomJustify: '',
-
- justifyChanged: function(old) {
- this.updateBarJustify(this.$.topBar, this.justify, old);
- },
-
- middleJustifyChanged: function(old) {
- this.updateBarJustify(this.$.middleBar, this.middleJustify, old);
- },
-
- bottomJustifyChanged: function(old) {
- this.updateBarJustify(this.$.bottomBar, this.bottomJustify, old);
- },
-
- updateBarJustify: function(bar, justify, old) {
- if (old) {
- bar.removeAttribute(this.toLayoutAttrName(old));
- }
- if (justify) {
- bar.setAttribute(this.toLayoutAttrName(justify), '');
- }
- },
-
- toLayoutAttrName: function(value) {
- return value === 'between' ? 'justified' : value + '-justified';
- }
-
- });
-
-})();
-

Powered by Google App Engine
This is Rietveld 408576698