| 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. |
| 11 * @const | 11 * @const |
| 12 */ | 12 */ |
| 13 var BROWSING_GAP_TIME = 15 * 60 * 1000; | 13 var BROWSING_GAP_TIME = 15 * 60 * 1000; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Maximum length of a history item title. Anything longer than this will be | 16 * Maximum length of a history item title. Anything longer than this will be |
| 17 * cropped to fit within this limit. This value is large enough that it will not | 17 * cropped to fit within this limit. This value is large enough that it will not |
| 18 * be noticeable in a 960px wide history-item. | 18 * be noticeable in a 960px wide history-item. |
| 19 * @const | 19 * @const |
| 20 */ | 20 */ |
| 21 var TITLE_MAX_LENGTH = 300; | 21 var TITLE_MAX_LENGTH = 300; |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * Histogram buckets for UMA tracking of which view is being shown to the user. |
| 25 * @enum {number} |
| 26 */ |
| 27 var HistoryViewHistogram = { |
| 28 HISTORY: 0, |
| 29 GROUPED_WEEK: 1, |
| 30 GROUPED_MONTH: 2, |
| 31 SYNCED_TABS: 3, |
| 32 SIGNIN_PROMO: 4, |
| 33 END: 5, // Should always be last. |
| 34 }; |
| 35 |
| 36 /** |
| 24 * @enum {number} | 37 * @enum {number} |
| 25 */ | 38 */ |
| 26 var HistoryRange = { | 39 var HistoryRange = { |
| 27 ALL_TIME: 0, | 40 ALL_TIME: 0, |
| 28 WEEK: 1, | 41 WEEK: 1, |
| 29 MONTH: 2 | 42 MONTH: 2 |
| 30 }; | 43 }; |
| 31 | 44 |
| 32 // Types: | 45 // Types: |
| 33 /** | 46 /** |
| (...skipping 10 matching lines...) Expand all Loading... |
| 44 * results: ?Array<!HistoryEntry>, | 57 * results: ?Array<!HistoryEntry>, |
| 45 * sessionList: ?Array<!ForeignSession>}} | 58 * sessionList: ?Array<!ForeignSession>}} |
| 46 */ | 59 */ |
| 47 var QueryResult; | 60 var QueryResult; |
| 48 | 61 |
| 49 /** @constructor | 62 /** @constructor |
| 50 * @extends {MouseEvent} */ | 63 * @extends {MouseEvent} */ |
| 51 var DomRepeatClickEvent = function() { | 64 var DomRepeatClickEvent = function() { |
| 52 this.model = null; | 65 this.model = null; |
| 53 }; | 66 }; |
| OLD | NEW |