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

Unified Diff: chrome/browser/resources/md_history/history_list.html

Issue 1941133002: MD History: Use iron-scroll-threshold to determine when to load new data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pseudomaster
Patch Set: Fix closure compile (how exciting!) Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_list.html
diff --git a/chrome/browser/resources/md_history/history_list.html b/chrome/browser/resources/md_history/history_list.html
index 9642694196cff465ea60c9b9dc8627cf5112f5f1..b7c28687a16b27e4f7b8686118a3a03c72903474 100644
--- a/chrome/browser/resources/md_history/history_list.html
+++ b/chrome/browser/resources/md_history/history_list.html
@@ -1,5 +1,6 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-scroll-threshold/iron-scroll-threshold.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.html">
<link rel="import" href="chrome://resources/cr_elements/cr_shared_menu/cr_shared_menu.html">
<link rel="import" href="chrome://history/constants.html">
@@ -35,7 +36,6 @@
{{noResultsMessage_(searchTerm, loading_)}}
</div>
<iron-list items="{{historyData}}" as="item" id="infinite-list"
- on-scroll="scrollHandler_"
hidden$="{{!hasResults(historyData.length)}}">
<template>
<history-item item="[[item]]"
@@ -49,6 +49,9 @@
</history-item>
</template>
</iron-list>
+ <iron-scroll-threshold id="scroll-threshold" scroll-target="infinite-list"
+ lower-threshold="500" on-lower-threshold="loadMoreData_">
+ </iron-scroll-threshold>
<cr-shared-menu id="sharedMenu">
<paper-item id="menuMoreButton" on-tap="onMoreFromSiteTap_">
$i18n{moreFromSite}
« no previous file with comments | « chrome/browser/resources/md_history/compiled_resources2.gyp ('k') | chrome/browser/resources/md_history/history_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698