mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
Added/Updated topSites /w docs
This commit is contained in:
Vendored
+10
-1
@@ -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;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
Reference in New Issue
Block a user