Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2228)

Unified Diff: chrome/browser/resources/md_history/externs.js

Issue 2830983005: Remove old webui History page on desktop and mobile (Closed)
Patch Set: merge Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/externs.js
diff --git a/chrome/browser/resources/md_history/externs.js b/chrome/browser/resources/md_history/externs.js
index 04f593102bfe44f916502b8860e18023519ce07c..4c870ec7841e8274eb723da4518b13b89dbf8a88 100644
--- a/chrome/browser/resources/md_history/externs.js
+++ b/chrome/browser/resources/md_history/externs.js
@@ -1,13 +1,81 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
+// Copyright 2017 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 required to closure-compile MD History.
+ * @fileoverview Externs for objects sent from C++ to chrome://history.
* @externs
*/
-// Types:
+/**
+ * The type of the history result object. The definition is based on
+ * chrome/browser/ui/webui/browsing_history_handler.cc:
+ * BrowsingHistoryHandler::HistoryEntry::ToValue()
+ * @typedef {{allTimestamps: Array<number>,
+ * blockedVisit: boolean,
+ * dateRelativeDay: string,
+ * dateShort: string,
+ * dateTimeOfDay: string,
+ * deviceName: string,
+ * deviceType: string,
+ * domain: string,
+ * fallbackFaviconText: string,
+ * hostFilteringBehavior: number,
+ * snippet: string,
+ * 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/browsing_history_handler.cc:
+ * BrowsingHistoryHandler::QueryComplete()
+ * @typedef {{finished: boolean,
+ * hasSyncedResults: boolean,
+ * queryInterval: string,
+ * queryStartMonth: string,
+ * term: string}}
+ */
+var HistoryQuery;
+
+/**
+ * The type of the foreign session tab object. This definition is based on
+ * chrome/browser/ui/webui/foreign_session_handler.cc:
+ * @typedef {{direction: string,
+ * sessionId: number,
+ * timestamp: number,
+ * title: string,
+ * type: string,
+ * url: string}}
+ */
+var ForeignSessionTab;
+
+/**
+ * The type of the foreign session tab object. This definition is based on
+ * chrome/browser/ui/webui/foreign_session_handler.cc:
+ * @typedef {{timestamp: number,
+ * userVisibleTimestamp: string,
+ * sessionId: number,
+ * tabs: Array<ForeignSessionTab>}}
+ */
+var ForeignSessionWindow;
+
+/**
+ * The type of the foreign session info object. This definition is based on
+ * chrome/browser/ui/webui/foreign_session_handler.cc:
+ * @typedef {{collapsed: boolean,
+ * deviceType: string,
+ * name: string,
+ * modifiedTime: string,
+ * tag: string,
+ * timestamp: number,
+ * windows: Array<ForeignSessionWindow>}}
+ */
+var ForeignSession;
+
/**
* @typedef {{incremental: boolean,
* querying: boolean,
« no previous file with comments | « chrome/browser/resources/md_history/compiled_resources2.gyp ('k') | chrome/browser/resources/ssl/images/2x/roadblock.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698