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

Side by Side Diff: chrome/browser/resources/md_history/history_card_manager.html

Issue 1643693003: MD History: Implement search functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch_to_be_uploaded
Patch Set: Hide cards that haven't been rerendered from previous chrome.send(). Created 4 years, 10 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/polymer/v1_0/polymer/polymer.html"> 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/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/iron-list/iron-list.htm l">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h tml"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h tml">
5 <link rel="import" href="chrome://resources/html/cr/ui/position_util.html"> 5 <link rel="import" href="chrome://resources/html/cr/ui/position_util.html">
6 <link rel="import" href="chrome://history/history_card.html"> 6 <link rel="import" href="chrome://history/history_card.html">
7 7
8 <dom-module id="history-card-manager"> 8 <dom-module id="history-card-manager">
9 <template> 9 <template>
10 <style> 10 <style>
(...skipping 22 matching lines...) Expand all
33 33
34 paper-item { 34 paper-item {
35 -webkit-user-select: none; 35 -webkit-user-select: none;
36 cursor: pointer; 36 cursor: pointer;
37 font: inherit; 37 font: inherit;
38 } 38 }
39 39
40 paper-item:hover { 40 paper-item:hover {
41 background: #eaeaea; 41 background: #eaeaea;
42 } 42 }
43
44 #no-results {
45 flex: 1;
46 align-items: center;
47 color: #b4b4b4;
48 display: flex;
49 font-size: 123.1%;
50 font-weight: 500;
51 justify-content: center;
52 }
43 </style> 53 </style>
44 <iron-list items="{{historyDataByDay_}}" as="historyDay" id="infinite-list" 54 <template is="dom-if" if="{{noResults_(historyDataByDay_.length, loading)}}" >
tsergeant 2016/02/02 02:57:36 These dom-ifs complicate the template a fair bit.
hsampson 2016/02/03 02:37:58 Done.
45 on-scroll="scrollHandler_"> 55 <div id="no-results">{{noResultsMessage}}</div>
46 <template> 56 </template>
47 <history-card history-date="{{historyDay.date}}" 57 <template is="dom-if" if="{{!noResults_(historyDataByDay_.length, loading)}} ">
48 history-items="{{historyDay.historyItems}}"> 58 <iron-list items="{{historyDataByDay_}}" as="historyDay" id="infinite-list "
49 </history-card> 59 on-scroll="scrollHandler_">
50 </template> 60 <template>
51 </iron-list> 61 <history-card history-date="{{historyDay.date}}"
62 search-term="[[searchTerm]]"
63 history-items="{{historyDay.historyItems}}">
64 </history-card>
65 </template>
66 </iron-list>
67 </template>
52 <paper-menu id="overflow-menu"> 68 <paper-menu id="overflow-menu">
53 <paper-item i18n-content="moreFromSite" on-tap="onMoreFromSiteTap_"> 69 <paper-item i18n-content="moreFromSite" on-tap="onMoreFromSiteTap_">
54 </paper-item> 70 </paper-item>
55 <paper-item i18n-content="removeFromHistory" 71 <paper-item i18n-content="removeFromHistory"
56 on-tap="onRemoveFromHistoryTap_"> 72 on-tap="onRemoveFromHistoryTap_">
57 </paper-item> 73 </paper-item>
58 </paper-menu> 74 </paper-menu>
59 </template> 75 </template>
60 <script src="chrome://history/history_card_manager.js"></script> 76 <script src="chrome://history/history_card_manager.js"></script>
61 </dom-module> 77 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698