| 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 // Globals: | 5 // Globals: |
| 6 /** @const */ var RESULTS_PER_PAGE = 150; | 6 /** @const */ var RESULTS_PER_PAGE = 150; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Amount of time between pageviews that we consider a 'break' in browsing, | 9 * Amount of time between pageviews that we consider a 'break' in browsing, |
| 10 * measured in milliseconds. | 10 * measured in milliseconds. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 var TITLE_MAX_LENGTH = 300; | 21 var TITLE_MAX_LENGTH = 300; |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * @enum {number} | 24 * @enum {number} |
| 25 */ | 25 */ |
| 26 var HistoryRange = { | 26 var HistoryRange = { |
| 27 ALL_TIME: 0, | 27 ALL_TIME: 0, |
| 28 WEEK: 1, | 28 WEEK: 1, |
| 29 MONTH: 2 | 29 MONTH: 2 |
| 30 }; | 30 }; |
| 31 | |
| 32 // Types: | |
| 33 /** | |
| 34 * @typedef {{groupedOffset: number, | |
| 35 * incremental: boolean, | |
| 36 * querying: boolean, | |
| 37 * range: HistoryRange, | |
| 38 * searchTerm: string}} | |
| 39 */ | |
| 40 var QueryState; | |
| 41 | |
| 42 /** | |
| 43 * @typedef {{info: ?HistoryQuery, | |
| 44 * results: ?Array<!HistoryEntry>, | |
| 45 * sessionList: ?Array<!ForeignSession>}} | |
| 46 */ | |
| 47 var QueryResult; | |
| 48 | |
| 49 /** @constructor | |
| 50 * @extends {MouseEvent} */ | |
| 51 var DomRepeatClickEvent = function() { | |
| 52 this.model = null; | |
| 53 }; | |
| OLD | NEW |