OLD | NEW |
(Empty) | |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 5 <link rel="import" href="chrome://bookmarks/item.html"> |
| 6 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
| 7 |
| 8 <dom-module id="bookmarks-list"> |
| 9 <template> |
| 10 <style include="shared-style"> |
| 11 :host { |
| 12 padding: 20px 32px; |
| 13 } |
| 14 |
| 15 #bookmarks-card { |
| 16 @apply(--shadow-elevation-2dp); |
| 17 background-color: #fff; |
| 18 margin: 0 auto; |
| 19 max-width: var(--card-max-width); |
| 20 min-width: var(--card-min-width); |
| 21 padding: 8px 0; |
| 22 } |
| 23 </style> |
| 24 <dialog is="cr-action-menu" id="dropdown"> |
| 25 <button class="dropdown-item" on-tap="onEditTap_"> |
| 26 $i18n{menuEdit} |
| 27 </button> |
| 28 <button class="dropdown-item" on-tap="onCopyURLTap_"> |
| 29 $i18n{menuCopyURL} |
| 30 </button> |
| 31 <button class="dropdown-item" on-tap="onDeleteTap_"> |
| 32 $i18n{menuDelete} |
| 33 </button> |
| 34 </dialog> |
| 35 <div id="bookmarks-card"> |
| 36 <!-- TODO(angelayang): handle empty folders --> |
| 37 <template is="dom-repeat" items="[[selectedNode.children]]" as="item"> |
| 38 <bookmarks-item item="[[item]]"></bookmarks-item> |
| 39 </template> |
| 40 </div> |
| 41 </template> |
| 42 <script src="chrome://bookmarks/list.js"></script> |
| 43 </dom-module> |
OLD | NEW |