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

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: Fix commenting. 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>
11 :host { 11 :host {
12 display: flex; 12 display: flex;
13 flex-direction: column; 13 flex-direction: column;
14 } 14 }
15 15
16 :host([menu-open]) #overflow-menu { 16 :host([menu-open]) #overflow-menu {
17 display: block; 17 display: block;
18 } 18 }
19 19
20 [hidden] {
21 display: none !important;
22 }
23
20 #overflow-menu { 24 #overflow-menu {
21 @apply(--shadow-elevation-2dp); 25 @apply(--shadow-elevation-2dp);
22 border-radius: 2px; 26 border-radius: 2px;
23 display: none; 27 display: none;
24 left: 0; 28 left: 0;
25 position: absolute; 29 position: absolute;
26 top: 0; 30 top: 0;
27 } 31 }
28 32
29 #infinite-list { 33 #infinite-list {
30 flex: 1; 34 flex: 1;
31 padding: 40px 0 0 0; 35 padding: 40px 0 0 0;
32 } 36 }
33 37
34 paper-item { 38 paper-item {
35 -webkit-user-select: none; 39 -webkit-user-select: none;
36 cursor: pointer; 40 cursor: pointer;
37 font: inherit; 41 font: inherit;
38 } 42 }
39 43
40 paper-item:hover { 44 paper-item:hover {
41 background: #eaeaea; 45 background: #eaeaea;
42 } 46 }
47
48 #no-results {
49 flex: 1;
50 align-items: center;
51 color: #b4b4b4;
52 display: flex;
calamity 2016/02/05 02:30:10 Should be able to remove this.
hsampson 2016/02/08 04:40:23 It looks like it but if I try removing any of the
53 font-size: 123.1%;
calamity 2016/02/05 02:30:10 This is an interesting font size...
hsampson 2016/02/08 04:40:23 Yea just copied it from md_downloads as there are
54 font-weight: 500;
55 justify-content: center;
56 }
43 </style> 57 </style>
58 <div id="no-results"
59 hidden$="{{resultsAvailable_(historyDataByDay_.length, loading_)}}">
60 {{noResultsMessage_}}
tsergeant 2016/02/04 02:28:49 Can this be a computed function instead of a prope
hsampson 2016/02/08 04:40:23 Done.
tsergeant 2016/02/08 22:59:01 Meep, what I meant here was to create a function l
hsampson 2016/02/09 02:17:51 Done.
tsergeant 2016/02/09 04:28:53 This still isn't quite what I intended, but it doe
61 </div>
44 <iron-list items="{{historyDataByDay_}}" as="historyDay" id="infinite-list" 62 <iron-list items="{{historyDataByDay_}}" as="historyDay" id="infinite-list"
45 on-scroll="scrollHandler_"> 63 on-scroll="scrollHandler_"
64 hidden$="{{!resultsAvailable_(historyDataByDay_.length, loading_)}}">
46 <template> 65 <template>
47 <history-card history-date="{{historyDay.date}}" 66 <history-card history-date="{{historyDay.date}}"
67 search-term="[[searchTerm]]"
48 history-items="{{historyDay.historyItems}}"> 68 history-items="{{historyDay.historyItems}}">
49 </history-card> 69 </history-card>
50 </template> 70 </template>
51 </iron-list> 71 </iron-list>
52 <paper-menu id="overflow-menu"> 72 <paper-menu id="overflow-menu">
53 <paper-item i18n-content="moreFromSite" on-tap="onMoreFromSiteTap_"> 73 <paper-item i18n-content="moreFromSite" on-tap="onMoreFromSiteTap_">
54 </paper-item> 74 </paper-item>
55 <paper-item i18n-content="removeFromHistory" 75 <paper-item i18n-content="removeFromHistory"
56 on-tap="onRemoveFromHistoryTap_"> 76 on-tap="onRemoveFromHistoryTap_">
57 </paper-item> 77 </paper-item>
58 </paper-menu> 78 </paper-menu>
59 </template> 79 </template>
60 <script src="chrome://history/history_card_manager.js"></script> 80 <script src="chrome://history/history_card_manager.js"></script>
61 </dom-module> 81 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698