• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5[
6  {
7    "namespace": "pageCapture",
8    "description": "Use the <code>chrome.pageCapture</code> API to save a tab as MHTML.",
9    "functions": [
10      {
11        "name": "saveAsMHTML",
12        "type": "function",
13        "description": "Saves the content of the tab with given id as MHTML.",
14        "parameters": [
15          {
16            "name": "details",
17            "type": "object",
18            "properties": {
19              "tabId": {
20                "type": "integer",
21                "minimum": 0,
22                "description": "The id of the tab to save as MHTML."
23              }
24            }
25          },
26          {
27            "name": "callback",
28            "type": "function",
29            "description": "Called when the MHTML has been generated.",
30            "parameters": [
31              {
32                "name": "mhtmlData",
33                "type": "binary",
34                "optional": "true",
35                "description": "The MHTML data as a Blob."
36              }
37            ]
38          }
39        ]
40      }
41    ]
42  }
43]
44