| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | |
| 2 <link rel="import" href="chrome://resources/html/assert.html"> | |
| 3 <link rel="import" href="chrome://resources/html/cr.html"> | |
| 4 <link rel="import" href="chrome://resources/html/util.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior
/iron-a11y-keys-behavior.html"> | |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop
down.html"> | |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/fade-in-animation.html"> | |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/fade-out-animation.html"> | |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> | |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | |
| 11 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper
-menu-button-animations.html"> | |
| 12 | |
| 13 <dom-module id="cr-shared-menu"> | |
| 14 <template> | |
| 15 <style> | |
| 16 paper-listbox { | |
| 17 @apply(--shadow-elevation-2dp); | |
| 18 overflow: hidden; | |
| 19 position: relative; | |
| 20 width: var(--cr-shared-menu-width); | |
| 21 } | |
| 22 </style> | |
| 23 <iron-dropdown id="dropdown" allow-outside-scroll restore-focus-on-close | |
| 24 vertical-align="auto" horizontal-align="right" opened="{{menuOpen}}" | |
| 25 open-animation-config="[[openAnimationConfig]]" | |
| 26 close-animation-config="[[closeAnimationConfig]]"> | |
| 27 <paper-listbox id="menu" class="dropdown-content"> | |
| 28 <content></content> | |
| 29 </paper-listbox> | |
| 30 </iron-dropdown> | |
| 31 </template> | |
| 32 <script src="cr_shared_menu.js"></script> | |
| 33 </dom-module> | |
| OLD | NEW |