Added/Updated topSites /w docs

This commit is contained in:
Fredrik Høisæther Rasch
2015-09-27 12:38:11 +02:00
parent c14d64b805
commit 1f7cbdea8b
+10 -1
View File
@@ -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;
}
////////////////////