| 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/cr_elements/cr_action_menu/cr_action
_menu.html"> | |
| 3 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> | |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 6 <link rel="import" href="chrome://bookmarks/edit_dialog.html"> | |
| 7 <link rel="import" href="chrome://bookmarks/item.html"> | 4 <link rel="import" href="chrome://bookmarks/item.html"> |
| 8 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 5 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
| 9 <link rel="import" href="chrome://bookmarks/store_client.html"> | 6 <link rel="import" href="chrome://bookmarks/store_client.html"> |
| 10 <link rel="import" href="chrome://bookmarks/util.html"> | 7 <link rel="import" href="chrome://bookmarks/util.html"> |
| 11 | 8 |
| 12 <dom-module id="bookmarks-list"> | 9 <dom-module id="bookmarks-list"> |
| 13 <template> | 10 <template> |
| 14 <style include="shared-style"> | 11 <style include="shared-style"> |
| 15 :host { | 12 :host { |
| 16 overflow-y: auto; | 13 overflow-y: auto; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 .centered-message { | 25 .centered-message { |
| 29 align-items: center; | 26 align-items: center; |
| 30 color: #6e6e6e; | 27 color: #6e6e6e; |
| 31 display: flex; | 28 display: flex; |
| 32 font-size: 14px; | 29 font-size: 14px; |
| 33 font-weight: 500; | 30 font-weight: 500; |
| 34 height: 100%; | 31 height: 100%; |
| 35 justify-content: center; | 32 justify-content: center; |
| 36 } | 33 } |
| 37 </style> | 34 </style> |
| 38 <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_"> | |
| 39 <button class="dropdown-item" on-tap="onEditTap_"> | |
| 40 [[getEditActionLabel_(menuItem_)]] | |
| 41 </button> | |
| 42 <button class="dropdown-item" on-tap="onCopyURLTap_" | |
| 43 hidden$="[[!menuItem_.url]]"> | |
| 44 $i18n{menuCopyURL} | |
| 45 </button> | |
| 46 <button class="dropdown-item" on-tap="onDeleteTap_"> | |
| 47 $i18n{menuDelete} | |
| 48 </button> | |
| 49 </dialog> | |
| 50 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList_.length)]]"> | 35 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList_.length)]]"> |
| 51 <template is="dom-repeat" items="[[displayedList_]]" as="id"> | 36 <template is="dom-repeat" items="[[displayedList_]]" as="id"> |
| 52 <bookmarks-item item-id="[[id]]" draggable="true"> | 37 <bookmarks-item item-id="[[id]]" draggable="true"> |
| 53 </bookmarks-item> | 38 </bookmarks-item> |
| 54 </template> | 39 </template> |
| 55 </div> | 40 </div> |
| 56 <div id="message" class="centered-message" | 41 <div id="message" class="centered-message" |
| 57 hidden$="[[!isEmptyList_(displayedList_.length)]]"> | 42 hidden$="[[!isEmptyList_(displayedList_.length)]]"> |
| 58 [[emptyListMessage_(searchTerm_)]] | 43 [[emptyListMessage_(searchTerm_)]] |
| 59 </div> | 44 </div> |
| 60 <template is="cr-lazy-render" id="editDialog"> | |
| 61 <bookmarks-edit-dialog></bookmarks-edit-dialog> | |
| 62 </template> | |
| 63 </template> | 45 </template> |
| 64 <script src="chrome://bookmarks/list.js"></script> | 46 <script src="chrome://bookmarks/list.js"></script> |
| 65 </dom-module> | 47 </dom-module> |
| OLD | NEW |