From 1f7cbdea8b077d80e8bd6412ac4ec1f6112f697f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B8is=C3=A6ther=20Rasch?= Date: Sun, 27 Sep 2015 12:38:11 +0200 Subject: [PATCH] Added/Updated topSites /w docs --- chrome/chrome.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index e56f42660..c1c92d3a7 100755 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -7021,13 +7021,22 @@ declare module chrome.tabs { //////////////////// // Top Sites //////////////////// +/** + * Use the chrome.topSites API to access the top sites that are displayed on the new tab page. + * Permissions: "topSites" + * @since Chrome 19. + */ declare module chrome.topSites { + /** An object encapsulating a most visited URL, such as the URLs on the new tab page. */ interface MostVisitedURL { + /** The most visited URL. */ url: string; + /** The title of the page */ title: string; } - export function get(callback: (data: MostVisitedURL) => void): void; + /** Gets a list of top sites. */ + export function get(callback: (data: MostVisitedURL[]) => void): void; } ////////////////////