| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |