OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "guestViewInternal", | 7 "namespace": "guestViewInternal", |
8 "compiler_options": { | 8 "compiler_options": { |
9 "implemented_in": "extensions/browser/api/guest_view/guest_view_internal_a
pi.h" | 9 "implemented_in": "extensions/browser/api/guest_view/guest_view_internal_a
pi.h" |
10 }, | 10 }, |
11 "description": "none", | 11 "description": "none", |
12 "types": [ | 12 "types": [ |
13 { | 13 { |
14 "id": "Size", | 14 "id": "Size", |
15 "type": "object", | 15 "type": "object", |
16 "properties": { | 16 "properties": { |
17 "width": { | 17 "width": { |
18 "type": "integer" | 18 "type": "integer" |
19 }, | 19 }, |
20 "height": { | 20 "height": { |
21 "type": "integer" | 21 "type": "integer" |
22 } | 22 } |
23 } | 23 } |
24 }, | 24 }, |
25 { | 25 { |
26 "id": "AutoSizeParams", | 26 "id": "SizeParams", |
27 "type": "object", | 27 "type": "object", |
28 "description": "Autosize parameters.", | 28 "description": "Size parameters.", |
29 "properties": { | 29 "properties": { |
30 "enableAutoSize": { | 30 "enableAutoSize": { |
31 "type": "boolean" | 31 "type": "boolean", |
| 32 "optional": true |
32 }, | 33 }, |
33 "min": { | 34 "min": { |
34 "$ref": "Size" | 35 "$ref": "Size", |
| 36 "optional": true |
35 }, | 37 }, |
36 "max": { | 38 "max": { |
37 "$ref": "Size" | 39 "$ref": "Size", |
| 40 "optional": true |
| 41 }, |
| 42 "normal": { |
| 43 "$ref": "Size", |
| 44 "optional": true |
38 } | 45 } |
39 } | 46 } |
40 } | 47 } |
41 ], | 48 ], |
42 "functions": [ | 49 "functions": [ |
43 { | 50 { |
44 "name": "createGuest", | 51 "name": "createGuest", |
45 "type": "function", | 52 "type": "function", |
46 "parameters": [ | 53 "parameters": [ |
47 { | 54 { |
(...skipping 28 matching lines...) Expand all Loading... |
76 }, | 83 }, |
77 { | 84 { |
78 "type": "function", | 85 "type": "function", |
79 "name": "callback", | 86 "name": "callback", |
80 "parameters": [], | 87 "parameters": [], |
81 "optional": true | 88 "optional": true |
82 } | 89 } |
83 ] | 90 ] |
84 }, | 91 }, |
85 { | 92 { |
86 "name": "setAutoSize", | 93 "name": "setSize", |
87 "type": "function", | 94 "type": "function", |
88 "parameters": [ | 95 "parameters": [ |
89 { | 96 { |
90 "type": "integer", | 97 "type": "integer", |
91 "name": "instanceId", | 98 "name": "instanceId", |
92 "description": "The instance ID of the guest <webview> process
. This not exposed to developers through the API." | 99 "description": "The instance ID of the guest <webview> process
. This not exposed to developers through the API." |
93 }, | 100 }, |
94 { | 101 { |
95 "$ref": "AutoSizeParams", | 102 "$ref": "SizeParams", |
96 "name": "params" | 103 "name": "params" |
97 }, | 104 }, |
98 { | 105 { |
99 "type": "function", | 106 "type": "function", |
100 "name": "callback", | 107 "name": "callback", |
101 "parameters": [], | 108 "parameters": [], |
102 "optional": true | 109 "optional": true |
103 } | 110 } |
104 ] | 111 ] |
105 } | 112 } |
106 ] | 113 ] |
107 } | 114 } |
108 ] | 115 ] |
OLD | NEW |