| 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 box-sizing: border-box; | 13 box-sizing: border-box; |
| 14 display: block; | 14 display: block; |
| 15 overflow: auto; | 15 overflow: auto; |
| 16 padding-top: var(--first-card-padding-top); | |
| 17 } | 16 } |
| 18 | 17 |
| 19 iron-list { | 18 iron-list { |
| 20 @apply(--card-sizing); | 19 @apply(--card-sizing); |
| 20 margin-top: var(--first-card-padding-top); |
| 21 } | 21 } |
| 22 </style> | 22 </style> |
| 23 <div id="no-results" class="centered-message" | 23 <div id="no-results" class="centered-message" |
| 24 hidden$="[[hasResults(historyData_.length)]]"> | 24 hidden$="[[hasResults(historyData_.length)]]"> |
| 25 {{noResultsMessage(searchedTerm, querying)}} | 25 {{noResultsMessage(searchedTerm, querying)}} |
| 26 </div> | 26 </div> |
| 27 <iron-list items="{{historyData_}}" as="item" id="infinite-list" | 27 <iron-list items="{{historyData_}}" as="item" id="infinite-list" |
| 28 hidden$="[[!hasResults(historyData_.length)]]"> | 28 hidden$="[[!hasResults(historyData_.length)]]"> |
| 29 <template> | 29 <template> |
| 30 <history-item tabindex$="[[tabIndex]]" | 30 <history-item tabindex$="[[tabIndex]]" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 41 last-focused="{{lastFocused_}}"> | 41 last-focused="{{lastFocused_}}"> |
| 42 </history-item> | 42 </history-item> |
| 43 </template> | 43 </template> |
| 44 </iron-list> | 44 </iron-list> |
| 45 <iron-scroll-threshold id="scroll-threshold" scroll-target="infinite-list" | 45 <iron-scroll-threshold id="scroll-threshold" scroll-target="infinite-list" |
| 46 lower-threshold="500" on-lower-threshold="loadMoreData_"> | 46 lower-threshold="500" on-lower-threshold="loadMoreData_"> |
| 47 </iron-scroll-threshold> | 47 </iron-scroll-threshold> |
| 48 </template> | 48 </template> |
| 49 <script src="chrome://history/history_list.js"></script> | 49 <script src="chrome://history/history_list.js"></script> |
| 50 </dom-module> | 50 </dom-module> |
| OLD | NEW |