summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/experimental_infobars.json
blob: 220f67930c4b4958f36205a853daec11d4abdbb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

[
  {
    "namespace": "experimental.infobars",
    "compiler_options": {
      "implemented_in": "chrome/browser/infobars/infobar_extension_api.h"
    },
    "types": [],
    "functions": [
      {
        "name": "show",
        "type": "function",
        "description": "Shows an infobar in the specified tab. The infobar will be closed automatically when the tab navigates. Use window.close() to close the infobar before then.",
        "parameters": [
          {
            "name": "details",
            "type": "object",
            "properties": {
              "tabId": {
                "type": "integer",
                "description": "The tab id for the tab to display the infobar in."
              },
              "path": {
                "type": "string",
                "description": "The html file that contains the infobar."
              },
              "height": {
                "type": "integer",
                "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.",
                "optional": true,
                "minimum": 0,
                "maximum": 72
              }
            }
          },
          {
            "type": "function",
            "name": "callback",
            "optional": true,
            "parameters": [
              {
                "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."
              }
            ]
          }
        ]
      }
    ]
  }
]