summaryrefslogtreecommitdiffstats
path: root/extensions/common/api/app_view_guest_internal.json
blob: 37fe657e6f5ccd615515bb58061e114a711a7cac (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
54
55
56
// Copyright 2014 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": "appViewGuestInternal",
    "compiler_options": {
      "implemented_in": "extensions/browser/api/guest_view/app_view/app_view_guest_internal_api.h"
    },
    "description": "none",
    "functions": [
      {
        "name": "attachFrame",
        "type": "function",
        "description": "Attaches the specified url to the AppView with the provided instance ID.",
        "parameters": [
          {
            "type": "string",
            "name": "url",
            "nodoc": true
          },
          {
            "type": "integer",
            "name": "guestInstanceId",
            "nodoc": true
          },
          {
            "type": "function",
            "name": "callback",
            "optional": true,
            "parameters": [
              {
                "type": "integer",
                "name": "instanceId"
              }
            ]
          }
        ]
      },
      {
        "name": "denyRequest",
        "type": "function",
        "description": "Denies the embedding request made by the AppView with the provided instance ID.",
        "parameters": [
          {
            "type": "integer",
            "name": "guestInstanceId",
            "nodoc": true
          }
        ]
      }
    ]
  }
]