Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / extensions / common / api / guest_view_internal.json
blob5ddda67b8470d4c1cc37fffc1d84d7b96c2bda95
1 // Copyright 2014 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.
6   {
7     "namespace": "guestViewInternal",
8     "compiler_options": {
9       "implemented_in": "extensions/browser/api/guest_view/guest_view_internal_api.h"
10     },
11     "description": "none",
12     "types": [
13       {
14         "id": "Size",
15         "type": "object",
16         "properties": {
17           "width": {
18             "type": "integer"
19           },
20           "height": {
21             "type": "integer"
22           }
23         }
24       },
25       {
26         "id": "AutoSizeParams",
27         "type": "object",
28         "description": "Autosize parameters.",
29         "properties": {
30           "enableAutoSize": {
31             "type": "boolean"
32           },
33           "min": {
34             "$ref": "Size"
35           },
36           "max": {
37             "$ref": "Size"
38           }
39         }
40       }
41     ],
42     "functions": [
43       {
44         "name": "createGuest",
45         "type": "function",
46         "parameters": [
47           {
48             "type": "string",
49             "name": "viewType",
50             "nodoc": true
51           },
52           {
53             "type": "object",
54             "name": "createParams",
55             "additionalProperties": {"type": "any"}
56           },
57           {
58             "type": "function",
59             "name": "callback",
60             "parameters": [
61               {
62                 "type": "integer",
63                 "name": "instanceId"
64               }
65             ]
66           }
67         ]
68       },
69       {
70         "name": "destroyGuest",
71         "type": "function",
72         "parameters": [
73           {
74             "type": "integer",
75             "name": "instanceId"
76           },
77           {
78             "type": "function",
79             "name": "callback",
80             "optional": true
81           }
82         ]
83       },
84       {
85         "name": "setAutoSize",
86         "type": "function",
87         "parameters": [
88           {
89             "type": "integer",
90             "name": "instanceId",
91             "description": "The instance ID of the guest <webview> process. This not exposed to developers through the API."
92           },
93           {
94             "$ref": "AutoSizeParams",
95             "name": "params"
96           },
97           {
98             "type": "function",
99             "name": "callback",
100             "optional": true
101           }
102         ]
103       }
104     ]
105   }