From 37094b95ac9e3e977bc1168bd74b771a85e54118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B8is=C3=A6ther=20Rasch?= Date: Sat, 5 Sep 2015 12:26:44 +0200 Subject: [PATCH] Added/Updated pageCapture /w docs --- chrome/chrome.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index 84bd6ec4b..85353e439 100755 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -5005,11 +5005,24 @@ declare module chrome.pageAction { //////////////////// // Page Capture //////////////////// +/** + * Use the chrome.pageCapture API to save a tab as MHTML. + * Permissions: "pageCapture" + * @since Chrome 18. + */ declare module chrome.pageCapture { interface SaveDetails { + /** The id of the tab to save as MHTML. */ tabId: number; } + /** + * Saves the content of the tab with given id as MHTML. + * @param callback Called when the MHTML has been generated. + * The callback parameter should be a function that looks like this: + * function(binary mhtmlData) {...}; + * Parameter mhtmlData: The MHTML data as a Blob. + */ export function saveAsMHTML(details: SaveDetails, callback: (mhtmlData: any) => void): void; }