| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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-container', | 6 is: 'history-list-container', |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 canDeleteHistory_: { |
| 10 type: Boolean, |
| 11 value: loadTimeData.getBoolean('allowDeletingHistory'), |
| 12 }, |
| 13 |
| 9 /** @type {!QueryState} */ | 14 /** @type {!QueryState} */ |
| 10 queryState: Object, | 15 queryState: Object, |
| 11 | 16 |
| 12 /** @type {!QueryResult} */ | 17 /** @type {!QueryResult} */ |
| 13 queryResult: Object, | 18 queryResult: Object, |
| 14 | 19 |
| 15 /** | 20 /** |
| 16 * @private {?{ | 21 * @private {?{ |
| 17 * index: number, | 22 * index: number, |
| 18 * item: !HistoryEntry, | 23 * item: !HistoryEntry, |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 this.closeMenu_(); | 208 this.closeMenu_(); |
| 204 }, | 209 }, |
| 205 | 210 |
| 206 /** | 211 /** |
| 207 * @return {Element} | 212 * @return {Element} |
| 208 * @private | 213 * @private |
| 209 */ | 214 */ |
| 210 getSelectedList_: function() { | 215 getSelectedList_: function() { |
| 211 return this.$['infinite-list']; | 216 return this.$['infinite-list']; |
| 212 }, | 217 }, |
| 213 | |
| 214 /** @private */ | |
| 215 canDeleteHistory_: function() { | |
| 216 return loadTimeData.getBoolean('allowDeletingHistory'); | |
| 217 } | |
| 218 }); | 218 }); |
| OLD | NEW |