Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: chrome/browser/resources/md_bookmarks/list.html

Issue 2834493006: MD Bookmarks: Pull context menu into separate element (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
29 .centered-message { 26 .centered-message {
30 align-items: center; 27 align-items: center;
31 color: #6e6e6e; 28 color: #6e6e6e;
32 display: flex; 29 display: flex;
33 font-size: 14px; 30 font-size: 14px;
34 font-weight: 500; 31 font-weight: 500;
35 height: 100%; 32 height: 100%;
36 justify-content: center; 33 justify-content: center;
37 } 34 }
38 </style> 35 </style>
39 <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_">
40 <button class="dropdown-item" on-tap="onEditTap_">
41 [[getEditActionLabel_(menuItem_)]]
42 </button>
43 <button class="dropdown-item" on-tap="onCopyURLTap_"
44 hidden$="[[!menuItem_.url]]">
45 $i18n{menuCopyURL}
46 </button>
47 <button class="dropdown-item" on-tap="onDeleteTap_">
48 $i18n{menuDelete}
49 </button>
50 </dialog>
51 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList_.length)]]"> 36 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList_.length)]]">
52 <template is="dom-repeat" items="[[displayedList_]]" as="id"> 37 <template is="dom-repeat" items="[[displayedList_]]" as="id">
53 <bookmarks-item item-id="[[id]]" draggable="true"> 38 <bookmarks-item item-id="[[id]]" draggable="true">
54 </bookmarks-item> 39 </bookmarks-item>
55 </template> 40 </template>
56 </div> 41 </div>
57 <div id="message" class="centered-message" 42 <div id="message" class="centered-message"
58 hidden$="[[!isEmptyList_(displayedList_.length)]]"> 43 hidden$="[[!isEmptyList_(displayedList_.length)]]">
59 [[emptyListMessage_(searchTerm_)]] 44 [[emptyListMessage_(searchTerm_)]]
60 </div> 45 </div>
61 <template is="cr-lazy-render" id="editDialog">
62 <bookmarks-edit-dialog></bookmarks-edit-dialog>
63 </template>
64 </template> 46 </template>
65 <script src="chrome://bookmarks/list.js"></script> 47 <script src="chrome://bookmarks/list.js"></script>
66 </dom-module> 48 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/item.js ('k') | chrome/browser/resources/md_bookmarks/list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698