| 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 15 matching lines...) Expand all Loading... |
| 26 var UMA_MAX_SUBSET_BUCKET_VALUE = 100; | 26 var UMA_MAX_SUBSET_BUCKET_VALUE = 100; |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * Histogram buckets for UMA tracking of which view is being shown to the user. | 29 * Histogram buckets for UMA tracking of which view is being shown to the user. |
| 30 * Keep this in sync with the HistoryPageView enum in histograms.xml. | 30 * Keep this in sync with the HistoryPageView enum in histograms.xml. |
| 31 * This enum is append-only. | 31 * This enum is append-only. |
| 32 * @enum {number} | 32 * @enum {number} |
| 33 */ | 33 */ |
| 34 var HistoryPageViewHistogram = { | 34 var HistoryPageViewHistogram = { |
| 35 HISTORY: 0, | 35 HISTORY: 0, |
| 36 GROUPED_WEEK: 1, | 36 DEPRECATED_GROUPED_WEEK: 1, |
| 37 GROUPED_MONTH: 2, | 37 DEPRECATED_GROUPED_MONTH: 2, |
| 38 SYNCED_TABS: 3, | 38 SYNCED_TABS: 3, |
| 39 SIGNIN_PROMO: 4, | 39 SIGNIN_PROMO: 4, |
| 40 END: 5, // Should always be last. | 40 END: 5, // Should always be last. |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 /** | 43 /** |
| 44 * @const | 44 * @const |
| 45 */ | 45 */ |
| 46 var SYNCED_TABS_HISTOGRAM_NAME = 'HistoryPage.OtherDevicesMenu'; | 46 var SYNCED_TABS_HISTOGRAM_NAME = 'HistoryPage.OtherDevicesMenu'; |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * Histogram buckets for UMA tracking of synced tabs. | 49 * Histogram buckets for UMA tracking of synced tabs. |
| 50 * @const | 50 * @const |
| 51 */ | 51 */ |
| 52 var SyncedTabsHistogram = { | 52 var SyncedTabsHistogram = { |
| 53 INITIALIZED: 0, | 53 INITIALIZED: 0, |
| 54 SHOW_MENU_DEPRECATED: 1, | 54 SHOW_MENU_DEPRECATED: 1, |
| 55 LINK_CLICKED: 2, | 55 LINK_CLICKED: 2, |
| 56 LINK_RIGHT_CLICKED: 3, | 56 LINK_RIGHT_CLICKED: 3, |
| 57 SESSION_NAME_RIGHT_CLICKED_DEPRECATED: 4, | 57 SESSION_NAME_RIGHT_CLICKED_DEPRECATED: 4, |
| 58 SHOW_SESSION_MENU: 5, | 58 SHOW_SESSION_MENU: 5, |
| 59 COLLAPSE_SESSION: 6, | 59 COLLAPSE_SESSION: 6, |
| 60 EXPAND_SESSION: 7, | 60 EXPAND_SESSION: 7, |
| 61 OPEN_ALL: 8, | 61 OPEN_ALL: 8, |
| 62 HAS_FOREIGN_DATA: 9, | 62 HAS_FOREIGN_DATA: 9, |
| 63 HIDE_FOR_NOW: 10, | 63 HIDE_FOR_NOW: 10, |
| 64 LIMIT: 11 // Should always be the last one. | 64 LIMIT: 11 // Should always be the last one. |
| 65 }; | 65 }; |
| 66 | |
| 67 /** | |
| 68 * @enum {number} | |
| 69 */ | |
| 70 var HistoryRange = { | |
| 71 ALL_TIME: 0, | |
| 72 WEEK: 1, | |
| 73 MONTH: 2, | |
| 74 }; | |
| OLD | NEW |