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

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

Issue 2869273011: [MD Bookmarks] Convert bookmark list to iron-list. (Closed)
Patch Set: add comment, fix closure, 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/polymer/v1_0/iron-list/iron-list.htm l">
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
4 <link rel="import" href="chrome://bookmarks/item.html"> 5 <link rel="import" href="chrome://bookmarks/item.html">
5 <link rel="import" href="chrome://bookmarks/shared_style.html"> 6 <link rel="import" href="chrome://bookmarks/shared_style.html">
6 <link rel="import" href="chrome://bookmarks/store_client.html"> 7 <link rel="import" href="chrome://bookmarks/store_client.html">
7 <link rel="import" href="chrome://bookmarks/util.html"> 8 <link rel="import" href="chrome://bookmarks/util.html">
8 9
9 <dom-module id="bookmarks-list"> 10 <dom-module id="bookmarks-list">
10 <template> 11 <template>
11 <style include="shared-style"> 12 <style include="shared-style">
(...skipping 14 matching lines...) Expand all
26 .centered-message { 27 .centered-message {
27 align-items: center; 28 align-items: center;
28 color: #6e6e6e; 29 color: #6e6e6e;
29 display: flex; 30 display: flex;
30 font-size: 14px; 31 font-size: 14px;
31 font-weight: 500; 32 font-weight: 500;
32 height: 100%; 33 height: 100%;
33 justify-content: center; 34 justify-content: center;
34 } 35 }
35 </style> 36 </style>
36 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList_.length)]]"> 37 <iron-list items="[[displayedList_]]" id="bookmarksCard"
37 <template is="dom-repeat" items="[[displayedList_]]" as="id"> 38 hidden$="[[isEmptyList_(displayedList_.length)]]">
38 <bookmarks-item item-id="[[id]]" draggable="true"> 39 <template>
40 <bookmarks-item item-id="[[item.id]]" draggable="true"
41 tabindex$="[[tabIndex]]" iron-list-tab-index="[[tabIndex]]">
39 </bookmarks-item> 42 </bookmarks-item>
40 </template> 43 </template>
41 </div> 44 </iron-list>
42 <div id="message" class="centered-message" 45 <div id="message" class="centered-message"
43 hidden$="[[!isEmptyList_(displayedList_.length)]]"> 46 hidden$="[[!isEmptyList_(displayedList_.length)]]">
44 [[emptyListMessage_(searchTerm_)]] 47 [[emptyListMessage_(searchTerm_)]]
45 </div> 48 </div>
46 </template> 49 </template>
47 <script src="chrome://bookmarks/list.js"></script> 50 <script src="chrome://bookmarks/list.js"></script>
48 </dom-module> 51 </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