Fix sort order of unlaunched apps on app list start page.
[chromium-blink-merge.git] / extensions / common / api / guest_view_internal.json
blobddf8ce9457ceeea32e2597c5c34dc5d662e8ca58
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": "SizeParams",
27         "type": "object",
28         "description": "Size parameters.",
29         "properties": {
30           "enableAutoSize": {
31             "type": "boolean",
32             "optional": true
33           },
34           "min": {
35             "$ref": "Size",
36             "optional": true
37           },
38           "max": {
39             "$ref": "Size",
40             "optional": true
41           },
42           "normal": {
43             "$ref": "Size",
44             "optional": true
45           }
46         }
47       }
48     ],
49     "functions": [
50       {
51         "name": "createGuest",
52         "type": "function",
53         "parameters": [
54           {
55             "type": "string",
56             "name": "viewType",
57             "nodoc": true
58           },
59           {
60             "type": "object",
61             "name": "createParams",
62             "additionalProperties": {"type": "any"}
63           },
64           {
65             "type": "function",
66             "name": "callback",
67             "parameters": [
68               {
69                 "type": "integer",
70                 "name": "instanceId"
71               }
72             ]
73           }
74         ]
75       },
76       {
77         "name": "destroyGuest",
78         "type": "function",
79         "parameters": [
80           {
81             "type": "integer",
82             "name": "instanceId"
83           },
84           {
85             "type": "function",
86             "name": "callback",
87             "parameters": [],
88             "optional": true
89           }
90         ]
91       },
92       {
93         "name": "setSize",
94         "type": "function",
95         "parameters": [
96           {
97             "type": "integer",
98             "name": "instanceId",
99             "description": "The instance ID of the guest <webview> process. This not exposed to developers through the API."
100           },
101           {
102             "$ref": "SizeParams",
103             "name": "params"
104           },
105           {
106             "type": "function",
107             "name": "callback",
108             "parameters": [],
109             "optional": true
110           }
111         ]
112       }
113     ]
114   }