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/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/iron-scroll-threshold/i
ron-scroll-threshold.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-scroll-threshold/i
ron-scroll-threshold.html"> |
4 <link rel="import" href="chrome://history/constants.html"> | 4 <link rel="import" href="chrome://history/constants.html"> |
5 <link rel="import" href="chrome://history/history_item.html"> | 5 <link rel="import" href="chrome://history/history_item.html"> |
6 <link rel="import" href="chrome://history/history_list_behavior.html"> | 6 <link rel="import" href="chrome://history/history_list_behavior.html"> |
7 <link rel="import" href="chrome://history/shared_style.html"> | 7 <link rel="import" href="chrome://history/shared_style.html"> |
8 | 8 |
9 <dom-module id="history-list"> | 9 <dom-module id="history-list"> |
10 <template> | 10 <template> |
11 <style include="shared-style"> | 11 <style include="shared-style"> |
12 :host { | 12 :host { |
13 display: block; | 13 display: block; |
14 overflow: auto; | 14 overflow: auto; |
15 } | 15 } |
16 | 16 |
17 #infinite-list { | |
18 @apply(--card-container-filter); | |
19 } | |
20 | |
21 history-item { | 17 history-item { |
22 --history-item-padding-side: var(--card-padding-side); | 18 --history-item-padding-side: var(--card-padding-side); |
23 } | 19 } |
24 </style> | 20 </style> |
25 <div id="no-results" class="centered-message" | 21 <div id="no-results" class="centered-message" |
26 hidden$="[[hasResults(historyData_.length)]]"> | 22 hidden$="[[hasResults(historyData_.length)]]"> |
27 {{noResultsMessage(searchedTerm, querying)}} | 23 {{noResultsMessage(searchedTerm, querying)}} |
28 </div> | 24 </div> |
29 <iron-list items="{{historyData_}}" as="item" id="infinite-list" | 25 <iron-list items="{{historyData_}}" as="item" id="infinite-list" |
30 hidden$="[[!hasResults(historyData_.length)]]"> | 26 hidden$="[[!hasResults(historyData_.length)]]"> |
(...skipping 10 matching lines...) Expand all Loading... |
41 index="[[index]]"> | 37 index="[[index]]"> |
42 </history-item> | 38 </history-item> |
43 </template> | 39 </template> |
44 </iron-list> | 40 </iron-list> |
45 <iron-scroll-threshold id="scroll-threshold" scroll-target="infinite-list" | 41 <iron-scroll-threshold id="scroll-threshold" scroll-target="infinite-list" |
46 lower-threshold="500" on-lower-threshold="loadMoreData_"> | 42 lower-threshold="500" on-lower-threshold="loadMoreData_"> |
47 </iron-scroll-threshold> | 43 </iron-scroll-threshold> |
48 </template> | 44 </template> |
49 <script src="chrome://history/history_list.js"></script> | 45 <script src="chrome://history/history_list.js"></script> |
50 </dom-module> | 46 </dom-module> |
OLD | NEW |