| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @fileoverview Externs for objects sent from C++ to chrome://history. | 6 * @fileoverview Externs for objects sent from C++ to chrome://history. |
| 7 * @externs | 7 * @externs |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * The type of the history result object. The definition is based on | 11 * The type of the history result object. The definition is based on |
| 12 * chrome/browser/ui/webui/history_ui.cc: | 12 * chrome/browser/ui/webui/history_ui.cc: |
| 13 * BrowsingHistoryHandler::HistoryEntry::ToValue() | 13 * BrowsingHistoryHandler::HistoryEntry::ToValue() |
| 14 * @typedef {{allTimestamps: Array<number>, | 14 * @typedef {{allTimestamps: Array<number>, |
| 15 * blockedVisit: boolean, | 15 * blockedVisit: boolean, |
| 16 * dateRelativeDay: string, | 16 * dateRelativeDay: string, |
| 17 * dateShort: string, | 17 * dateShort: string, |
| 18 * dateTimeOfDay: string, | 18 * dateTimeOfDay: string, |
| 19 * deviceName: string, | 19 * deviceName: string, |
| 20 * deviceType: string, | 20 * deviceType: string, |
| 21 * domain: string, | 21 * domain: string, |
| 22 * fallbackFaviconText: string, |
| 22 * hostFilteringBehavior: number, | 23 * hostFilteringBehavior: number, |
| 23 * snippet: string, | 24 * snippet: string, |
| 24 * starred: boolean, | 25 * starred: boolean, |
| 25 * time: number, | 26 * time: number, |
| 26 * title: string, | 27 * title: string, |
| 27 * url: string}} | 28 * url: string}} |
| 28 */ | 29 */ |
| 29 var HistoryEntry; | 30 var HistoryEntry; |
| 30 | 31 |
| 31 /** | 32 /** |
| 32 * The type of the history results info object. The definition is based on | 33 * The type of the history results info object. The definition is based on |
| 33 * chrome/browser/ui/webui/history_ui.cc: | 34 * chrome/browser/ui/webui/history_ui.cc: |
| 34 * BrowsingHistoryHandler::QueryComplete() | 35 * BrowsingHistoryHandler::QueryComplete() |
| 35 * @typedef {{finished: boolean, | 36 * @typedef {{finished: boolean, |
| 36 * hasSyncedResults: boolean, | 37 * hasSyncedResults: boolean, |
| 37 * queryEndTime: string, | 38 * queryEndTime: string, |
| 38 * queryStartTime: string, | 39 * queryStartTime: string, |
| 39 * term: string}} | 40 * term: string}} |
| 40 */ | 41 */ |
| 41 var HistoryQuery; | 42 var HistoryQuery; |
| OLD | NEW |