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

Side by Side Diff: chrome/browser/resources/md_history/history_list.js

Issue 2590093002: MD History: Move queryState to be managed by history-router (Closed)
Patch Set: Fix test Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'history-list', 6 is: 'history-list',
7 7
8 behaviors: [HistoryListBehavior], 8 behaviors: [HistoryListBehavior],
9 9
10 properties: { 10 properties: {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 }, 94 },
95 95
96 /** 96 /**
97 * Called when the page is scrolled to near the bottom of the list. 97 * Called when the page is scrolled to near the bottom of the list.
98 * @private 98 * @private
99 */ 99 */
100 loadMoreData_: function() { 100 loadMoreData_: function() {
101 if (this.resultLoadingDisabled_ || this.querying) 101 if (this.resultLoadingDisabled_ || this.querying)
102 return; 102 return;
103 103
104 this.fire('load-more-history'); 104 this.fire('query-history', true);
105 }, 105 },
106 106
107 /** 107 /**
108 * Check whether the time difference between the given history item and the 108 * Check whether the time difference between the given history item and the
109 * next one is large enough for a spacer to be required. 109 * next one is large enough for a spacer to be required.
110 * @param {HistoryEntry} item 110 * @param {HistoryEntry} item
111 * @param {number} index The index of |item| in |historyData_|. 111 * @param {number} index The index of |item| in |historyData_|.
112 * @param {number} length The length of |historyData_|. 112 * @param {number} length The length of |historyData_|.
113 * @return {boolean} Whether or not time gap separator is required. 113 * @return {boolean} Whether or not time gap separator is required.
114 * @private 114 * @private
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 /** 153 /**
154 * @param {number} index 154 * @param {number} index
155 * @return {string} 155 * @return {string}
156 * @private 156 * @private
157 */ 157 */
158 pathForItem_: function(index) { 158 pathForItem_: function(index) {
159 return 'historyData_.' + index; 159 return 'historyData_.' + index;
160 }, 160 },
161 }); 161 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698