| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/html/assert.html"> | 2 <link rel="import" href="chrome://resources/html/assert.html"> |
| 3 <link rel="import" href="chrome://resources/html/cr.html"> | 3 <link rel="import" href="chrome://resources/html/cr.html"> |
| 4 <link rel="import" href="chrome://resources/html/util.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"> | 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"> | 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"> | 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"> | 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"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper
-menu-button-animations.html"> | 11 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper
-menu-button-animations.html"> |
| 11 | 12 |
| 12 <dom-module id="cr-shared-menu"> | 13 <dom-module id="cr-shared-menu"> |
| 13 <template> | 14 <template> |
| 14 <style> | 15 <style> |
| 15 #menu { | 16 paper-listbox { |
| 16 @apply(--shadow-elevation-2dp); | 17 @apply(--shadow-elevation-2dp); |
| 17 background-color: white; | |
| 18 overflow: hidden; | 18 overflow: hidden; |
| 19 padding: 8px 0; | |
| 20 position: relative; | 19 position: relative; |
| 21 width: var(--cr-shared-menu-width); | 20 width: var(--cr-shared-menu-width); |
| 22 } | 21 } |
| 23 </style> | 22 </style> |
| 24 <iron-dropdown id="dropdown" allow-outside-scroll restore-focus-on-close | 23 <iron-dropdown id="dropdown" allow-outside-scroll restore-focus-on-close |
| 25 vertical-align="auto" horizontal-align="right" opened="{{menuOpen}}" | 24 vertical-align="auto" horizontal-align="right" opened="{{menuOpen}}" |
| 26 open-animation-config="[[openAnimationConfig]]" | 25 open-animation-config="[[openAnimationConfig]]" |
| 27 close-animation-config="[[closeAnimationConfig]]"> | 26 close-animation-config="[[closeAnimationConfig]]"> |
| 28 <div id="menu" class="dropdown-content" role="menu"> | 27 <paper-listbox id="menu" class="dropdown-content"> |
| 29 <content></content> | 28 <content></content> |
| 30 </div> | 29 </paper-listbox> |
| 31 </iron-dropdown> | 30 </iron-dropdown> |
| 32 </template> | 31 </template> |
| 33 <script src="cr_shared_menu.js"></script> | 32 <script src="cr_shared_menu.js"></script> |
| 34 </dom-module> | 33 </dom-module> |
| OLD | NEW |