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 * The largest bucket value for UMA histogram, based on entry ID. All entries | |
25 * with IDs greater than this will be included in this bucket. | |
26 * @const | |
27 */ | |
28 var UMA_MAX_BUCKET_VALUE = 1000; | |
29 | |
30 /** | |
31 * The largest bucket value for a UMA histogram that is a subset of above. | |
32 * @const | |
33 */ | |
34 var UMA_MAX_SUBSET_BUCKET_VALUE = 100; | |
35 | |
36 /** | |
24 * Histogram buckets for UMA tracking of which view is being shown to the user. | 37 * Histogram buckets for UMA tracking of which view is being shown to the user. |
25 * @enum {number} | 38 * @enum {number} |
26 */ | 39 */ |
27 var HistoryViewHistogram = { | 40 var HistoryViewHistogram = { |
28 HISTORY: 0, | 41 HISTORY: 0, |
29 GROUPED_WEEK: 1, | 42 GROUPED_WEEK: 1, |
30 GROUPED_MONTH: 2, | 43 GROUPED_MONTH: 2, |
31 SYNCED_TABS: 3, | 44 SYNCED_TABS: 3, |
32 SIGNIN_PROMO: 4, | 45 SIGNIN_PROMO: 4, |
33 END: 5, // Should always be last. | 46 END: 5, // Should always be last. |
34 }; | 47 }; |
35 | 48 |
36 /** | 49 /** |
50 * @const | |
51 */ | |
52 var SYNCED_TABS_HISTOGRAM_NAME = 'HistoryPage.OtherDevicesMenu'; | |
53 | |
54 /** | |
55 * Histogram buckets for UMA tracking of synced tabs. | |
56 * @const | |
57 */ | |
58 var SyncedTabsHistogram = { | |
59 INITIALIZED: 0, | |
60 SHOW_MENU_DEPRECATED: 1, | |
61 LINK_CLICKED: 2, | |
62 LINK_RIGHT_CLICKED_DEPRECATED: 3, | |
tsergeant
2016/08/18 04:14:34
Why are these deprecated? This one and 'SHOW_SESSI
calamity
2016/08/19 13:59:43
I suppose I can add these. They just didn't exist
| |
63 SESSION_NAME_RIGHT_CLICKED_DEPRECATED: 4, | |
64 SHOW_SESSION_MENU_DEPRECATED: 5, | |
65 COLLAPSE_SESSION: 6, | |
66 EXPAND_SESSION: 7, | |
67 OPEN_ALL: 8, | |
68 HAS_FOREIGN_DATA: 9, | |
69 HIDE_FOR_NOW: 10, | |
70 LIMIT: 11 // Should always be the last one. | |
71 }; | |
72 | |
73 /** | |
37 * @enum {number} | 74 * @enum {number} |
38 */ | 75 */ |
39 var HistoryRange = { | 76 var HistoryRange = { |
40 ALL_TIME: 0, | 77 ALL_TIME: 0, |
41 WEEK: 1, | 78 WEEK: 1, |
42 MONTH: 2 | 79 MONTH: 2 |
43 }; | 80 }; |
OLD | NEW |