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; } ////////////////////