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

Unified Diff: ui/webui/resources/cr_elements/cr_dropdown_menu/cr_dropdown_menu.html

Issue 917893004: Add a <cr-dropdown-menu> custom element to cr_elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@paperdropdown
Patch Set: fix underscores in the demo file Created 5 years, 10 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: ui/webui/resources/cr_elements/cr_dropdown_menu/cr_dropdown_menu.html
diff --git a/ui/webui/resources/cr_elements/cr_dropdown_menu/cr_dropdown_menu.html b/ui/webui/resources/cr_elements/cr_dropdown_menu/cr_dropdown_menu.html
new file mode 100644
index 0000000000000000000000000000000000000000..070ae1582914b52823b479bb44b167f5d5d70087
--- /dev/null
+++ b/ui/webui/resources/cr_elements/cr_dropdown_menu/cr_dropdown_menu.html
@@ -0,0 +1,15 @@
+<link rel="import" href="chrome://resources/polymer/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/paper-dropdown-menu/paper-dropdown-menu.html">
+<link rel="import" href="chrome://resources/polymer/paper-dropdown/paper-dropdown.html">
+
+<polymer-element name="cr-dropdown-menu">
+ <template>
+ <link rel="stylesheet" href="cr-dropdown-menu.css">
+ <paper-dropdown-menu flex label="{{label}}" opened="{{opened}}">
michaelpg 2015/02/19 00:04:45 why is this flex?
Jeremy Klein 2015/02/19 23:45:04 This way if a client sets the cr-dropdown-menu's w
+ <paper-dropdown class="dropdown">
+ <content></content>
+ </paper-dropdown>
+ </paper-dropdown-menu>
+ </template>
+ <script src="cr-dropdown-menu.js"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698