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