| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 /////////////////////////////////////////////////////////////////////////////// | 5 /////////////////////////////////////////////////////////////////////////////// |
| 6 // Globals: | 6 // Globals: |
| 7 /** @const */ var RESULTS_PER_PAGE = 150; | 7 /** @const */ var RESULTS_PER_PAGE = 150; |
| 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 26 matching lines...) Expand all Loading... |
| 37 * @enum {number} | 37 * @enum {number} |
| 38 */ | 38 */ |
| 39 var SupervisedUserFilteringBehavior = { | 39 var SupervisedUserFilteringBehavior = { |
| 40 ALLOW: 0, | 40 ALLOW: 0, |
| 41 WARN: 1, | 41 WARN: 1, |
| 42 BLOCK: 2 | 42 BLOCK: 2 |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * The type of the history result object. The definition is based on | 46 * The type of the history result object. The definition is based on |
| 47 * chrome/browser/ui/webui/history_ui.cc: | 47 * chrome/browser/ui/webui/history_ui.mm: |
| 48 * BrowsingHistoryHandler::HistoryEntry::ToValue() | 48 * BrowsingHistoryHandler::HistoryEntry::ToValue() |
| 49 * @typedef {{allTimestamps: Array<number>, | 49 * @typedef {{allTimestamps: Array<number>, |
| 50 * blockedVisit: (boolean|undefined), | 50 * blockedVisit: (boolean|undefined), |
| 51 * dateRelativeDay: (string|undefined), | 51 * dateRelativeDay: (string|undefined), |
| 52 * dateShort: string, | 52 * dateShort: string, |
| 53 * dateTimeOfDay: (string|undefined), | 53 * dateTimeOfDay: (string|undefined), |
| 54 * deviceName: string, | 54 * deviceName: string, |
| 55 * deviceType: string, | 55 * deviceType: string, |
| 56 * domain: string, | 56 * domain: string, |
| 57 * hostFilteringBehavior: (number|undefined), | 57 * hostFilteringBehavior: (number|undefined), |
| 58 * snippet: (string|undefined), | 58 * snippet: (string|undefined), |
| 59 * starred: boolean, | 59 * starred: boolean, |
| 60 * time: number, | 60 * time: number, |
| 61 * title: string, | 61 * title: string, |
| 62 * url: string}} | 62 * url: string}} |
| 63 */ | 63 */ |
| 64 var HistoryEntry; | 64 var HistoryEntry; |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * The type of the history results info object. The definition is based on | 67 * The type of the history results info object. The definition is based on |
| 68 * chrome/browser/ui/webui/history_ui.cc: | 68 * chrome/browser/ui/webui/history_ui.mm: |
| 69 * BrowsingHistoryHandler::QueryComplete() | 69 * BrowsingHistoryHandler::QueryComplete() |
| 70 * @typedef {{finished: boolean, | 70 * @typedef {{finished: boolean, |
| 71 * hasSyncedResults: (boolean|undefined), | 71 * hasSyncedResults: (boolean|undefined), |
| 72 * queryEndTime: string, | 72 * queryEndTime: string, |
| 73 * queryStartTime: string, | 73 * queryStartTime: string, |
| 74 * term: string}} | 74 * term: string}} |
| 75 */ | 75 */ |
| 76 var HistoryQuery; | 76 var HistoryQuery; |
| 77 | 77 |
| 78 /** | 78 /** |
| (...skipping 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2352 historyView.reload(); | 2352 historyView.reload(); |
| 2353 } | 2353 } |
| 2354 | 2354 |
| 2355 // Add handlers to HTML elements. | 2355 // Add handlers to HTML elements. |
| 2356 document.addEventListener('DOMContentLoaded', load); | 2356 document.addEventListener('DOMContentLoaded', load); |
| 2357 | 2357 |
| 2358 // This event lets us enable and disable menu items before the menu is shown. | 2358 // This event lets us enable and disable menu items before the menu is shown. |
| 2359 document.addEventListener('canExecute', function(e) { | 2359 document.addEventListener('canExecute', function(e) { |
| 2360 e.canExecute = true; | 2360 e.canExecute = true; |
| 2361 }); | 2361 }); |
| OLD | NEW |