| 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://resources/polymer/v1_0/paper-item/paper-item.h
tml"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> |
| 5 <link rel="import" href="chrome://resources/cr_elements/cr_shared_menu/cr_shared
_menu.html"> | 5 <link rel="import" href="chrome://resources/cr_elements/cr_shared_menu/cr_shared
_menu.html"> |
| 6 <link rel="import" href="chrome://history/constants.html"> | 6 <link rel="import" href="chrome://history/constants.html"> |
| 7 <link rel="import" href="chrome://history/history_item.html"> | 7 <link rel="import" href="chrome://history/history_item.html"> |
| 8 <link rel="import" href="chrome://history/shared_style.html"> | 8 <link rel="import" href="chrome://history/shared_style.html"> |
| 9 | 9 |
| 10 <dom-module id="history-list"> | 10 <dom-module id="history-list"> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 -webkit-user-select: none; | 25 -webkit-user-select: none; |
| 26 cursor: pointer; | 26 cursor: pointer; |
| 27 font: inherit; | 27 font: inherit; |
| 28 } | 28 } |
| 29 | 29 |
| 30 paper-item:hover { | 30 paper-item:hover { |
| 31 background: #eaeaea; | 31 background: #eaeaea; |
| 32 } | 32 } |
| 33 </style> | 33 </style> |
| 34 <div id="no-results" class="centered-message" | 34 <div id="no-results" class="centered-message" |
| 35 hidden$="{{hasResults(historyData.length)}}"> | 35 hidden$="{{hasResults(historyData_.length)}}"> |
| 36 {{noResultsMessage_(searchedTerm, querying)}} | 36 {{noResultsMessage_(searchedTerm, querying)}} |
| 37 </div> | 37 </div> |
| 38 <iron-list items="{{historyData}}" as="item" id="infinite-list" | 38 <iron-list items="{{historyData_}}" as="item" id="infinite-list" |
| 39 hidden$="{{!hasResults(historyData.length)}}"> | 39 hidden$="{{!hasResults(historyData_.length)}}"> |
| 40 <template> | 40 <template> |
| 41 <history-item item="[[item]]" | 41 <history-item item="[[item]]" |
| 42 starred="[[item.starred]]" | 42 starred="[[item.starred]]" |
| 43 selected="{{item.selected}}" | 43 selected="{{item.selected}}" |
| 44 is-card-start="[[isCardStart_(item, index, historyData.length)]]" | 44 is-card-start="[[isCardStart_(item, index, historyData_.length)]]" |
| 45 is-card-end="[[isCardEnd_(item, index, historyData.length)]]" | 45 is-card-end="[[isCardEnd_(item, index, historyData_.length)]]" |
| 46 has-time-gap="[[needsTimeGap_(item, index, historyData.length)]]" | 46 has-time-gap="[[needsTimeGap_(item, index, historyData_.length)]]" |
| 47 search-term="[[searchedTerm]]" | 47 search-term="[[searchedTerm]]" |
| 48 number-of-items="[[historyData.length]]"> | 48 number-of-items="[[historyData_.length]]"> |
| 49 </history-item> | 49 </history-item> |
| 50 </template> | 50 </template> |
| 51 </iron-list> | 51 </iron-list> |
| 52 <iron-scroll-threshold id="scroll-threshold" scroll-target="infinite-list" | 52 <iron-scroll-threshold id="scroll-threshold" scroll-target="infinite-list" |
| 53 lower-threshold="500" on-lower-threshold="loadMoreData_"> | 53 lower-threshold="500" on-lower-threshold="loadMoreData_"> |
| 54 </iron-scroll-threshold> | 54 </iron-scroll-threshold> |
| 55 <cr-shared-menu id="sharedMenu"> | 55 <cr-shared-menu id="sharedMenu"> |
| 56 <paper-item id="menuMoreButton" on-tap="onMoreFromSiteTap_"> | 56 <paper-item id="menuMoreButton" on-tap="onMoreFromSiteTap_"> |
| 57 $i18n{moreFromSite} | 57 $i18n{moreFromSite} |
| 58 </paper-item> | 58 </paper-item> |
| 59 <paper-item id="menuRemoveButton" on-tap="onRemoveFromHistoryTap_"> | 59 <paper-item id="menuRemoveButton" on-tap="onRemoveFromHistoryTap_"> |
| 60 $i18n{removeFromHistory} | 60 $i18n{removeFromHistory} |
| 61 </paper-item> | 61 </paper-item> |
| 62 </cr-shared-menu> | 62 </cr-shared-menu> |
| 63 </template> | 63 </template> |
| 64 <script src="chrome://history/history_list.js"></script> | 64 <script src="chrome://history/history_list.js"></script> |
| 65 </dom-module> | 65 </dom-module> |
| OLD | NEW |