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