Chromium Code Reviews| Index: chrome/browser/resources/history/externs.js |
| diff --git a/chrome/browser/resources/history/externs.js b/chrome/browser/resources/history/externs.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8cc0a546b2d70cd4b46f5fa6c5ba3cfc0b512757 |
| --- /dev/null |
| +++ b/chrome/browser/resources/history/externs.js |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +/** |
| + * @fileoverview Externs for objects sent from C++ to chrome://history. |
| + * @externs |
| + */ |
| + |
| +/** |
| + * The type of the history result object. The definition is based on |
| + * chrome/browser/ui/webui/history_ui.cc: |
| + * BrowsingHistoryHandler::HistoryEntry::ToValue() |
| + * @typedef {{allTimestamps: Array<number>, |
| + * blockedVisit: (boolean|undefined), |
| + * dateRelativeDay: (string|undefined), |
| + * dateShort: string, |
| + * dateTimeOfDay: (string|undefined), |
| + * deviceName: string, |
| + * deviceType: string, |
| + * domain: string, |
| + * hostFilteringBehavior: (number|undefined), |
| + * snippet: (string|undefined), |
|
Dan Beam
2016/01/26 23:07:39
can you just change the C++ so that these are more
yingran
2016/01/27 00:30:34
Done.
|
| + * starred: boolean, |
| + * time: number, |
| + * title: string, |
| + * url: string}} |
| + */ |
| +var HistoryEntry; |
| + |
| +/** |
| + * The type of the history results info object. The definition is based on |
| + * chrome/browser/ui/webui/history_ui.cc: |
| + * BrowsingHistoryHandler::QueryComplete() |
| + * @typedef {{finished: boolean, |
| + * hasSyncedResults: (boolean|undefined), |
|
Dan Beam
2016/01/26 23:07:39
can this just always be a boolean?
yingran
2016/01/27 00:30:34
Done.
|
| + * queryEndTime: string, |
| + * queryStartTime: string, |
| + * term: string}} |
| + */ |
| +var HistoryQuery; |