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

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: Rebase 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }, 95 },
96 96
97 /** 97 /**
98 * Called when the page is scrolled to near the bottom of the list. 98 * Called when the page is scrolled to near the bottom of the list.
99 * @private 99 * @private
100 */ 100 */
101 loadMoreData_: function() { 101 loadMoreData_: function() {
102 if (this.resultLoadingDisabled_ || this.querying) 102 if (this.resultLoadingDisabled_ || this.querying)
103 return; 103 return;
104 104
105 this.fire('load-more-history'); 105 this.fire('query-history', true);
106 }, 106 },
107 107
108 /** 108 /**
109 * Ensure that the item is visible in the scroll pane when its menu is 109 * Ensure that the item is visible in the scroll pane when its menu is
110 * opened (it is possible to open off-screen items using keyboard shortcuts). 110 * opened (it is possible to open off-screen items using keyboard shortcuts).
111 * @param {Event} e 111 * @param {Event} e
112 * @private 112 * @private
113 */ 113 */
114 onOpenMenu_: function(e) { 114 onOpenMenu_: function(e) {
115 var index = e.detail.index; 115 var index = e.detail.index;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 /** 167 /**
168 * @param {number} index 168 * @param {number} index
169 * @return {string} 169 * @return {string}
170 * @private 170 * @private
171 */ 171 */
172 pathForItem_: function(index) { 172 pathForItem_: function(index) {
173 return 'historyData_.' + index; 173 return 'historyData_.' + index;
174 }, 174 },
175 }); 175 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/compiled_resources2.gyp ('k') | chrome/browser/resources/md_history/list_container.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698