Skip to content

Commit

Permalink
Added/Updated topSites /w docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikhr committed Sep 27, 2015
1 parent c14d64b commit 1f7cbde
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion chrome/chrome.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

////////////////////
Expand Down

0 comments on commit 1f7cbde

Please sign in to comment.