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

Unified Diff: third_party/polymer/components-chromium/core-dropdown-menu/core-dropdown-menu-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-dropdown-menu/core-dropdown-menu-extracted.js
diff --git a/third_party/polymer/components-chromium/core-dropdown-menu/core-dropdown-menu-extracted.js b/third_party/polymer/components-chromium/core-dropdown-menu/core-dropdown-menu-extracted.js
deleted file mode 100644
index 8d6e23ef1033b01430cd5af574c5bdcebac2db85..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/core-dropdown-menu/core-dropdown-menu-extracted.js
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-(function() {
-
- var p = {
-
- publish: {
-
- /**
- * A label for the control. The label is displayed if no item is selected.
- *
- * @attribute label
- * @type string
- * @default 'Select an item'
- */
- label: 'Select an item',
-
- /**
- * The icon to display when the drop-down is opened.
- *
- * @attribute openedIcon
- * @type string
- * @default 'arrow-drop-up'
- */
- openedIcon: 'arrow-drop-up',
-
- /**
- * The icon to display when the drop-down is closed.
- *
- * @attribute closedIcon
- * @type string
- * @default 'arrow-drop-down'
- */
- closedIcon: 'arrow-drop-down'
-
- },
-
- selectedItemLabel: '',
-
- overlayListeners: {
- 'core-overlay-open': 'openAction',
- 'core-activate': 'activateAction',
- 'core-select': 'selectAction'
- },
-
- activateAction: function(e) {
- this.opened = false;
- },
-
- selectAction: function(e) {
- var detail = e.detail;
- if (detail.isSelected) {
- this.selectedItemLabel = detail.item.label || detail.item.textContent;
- } else {
- this.selectedItemLabel = '';
- }
- }
-
- };
-
- Polymer.mixin2(p, Polymer.CoreFocusable);
- Polymer('core-dropdown-menu',p);
-
-})();
-

Powered by Google App Engine
This is Rietveld 408576698