Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: third_party/chrome/tools/test/arrays.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 [
2 {
3 "namespace": "arrays",
4 "types": [
5 {
6 "id": "EnumArrayType",
7 "type": "object",
8 "properties": {
9 "types": {
10 "type": "array",
11 "items": {
12 "type": "string",
13 "enum": ["one", "two", "three"]
14 }
15 }
16 }
17 },
18 {
19 "id": "OptionalEnumArrayType",
20 "type": "object",
21 "properties": {
22 "types": {
23 "type": "array",
24 "items": {
25 "type": "string",
26 "enum": ["one", "two", "three"]
27 },
28 "optional": true
29 }
30 }
31 },
32 {
33 "id": "BasicArrayType",
34 "type": "object",
35 "properties": {
36 "strings": {
37 "type": "array",
38 "items": {"type": "string"}
39 },
40 "booleans": {
41 "type": "array",
42 "items": {"type": "boolean"}
43 },
44 "numbers": {
45 "type": "array",
46 "items": {"type": "number"}
47 },
48 "integers": {
49 "type": "array",
50 "items": {"type": "integer"}
51 }
52 }
53 },
54 {
55 "id": "Item",
56 "type": "object",
57 "properties": {
58 "val": {
59 "type": "integer"
60 }
61 }
62 },
63 {
64 "id": "RefArrayType",
65 "type": "object",
66 "properties": {
67 "refs": {
68 "type": "array",
69 "items": { "$ref": "Item" }
70 }
71 }
72 }
73 ],
74 "functions": [
75 {
76 "name": "integerArray",
77 "type": "function",
78 "description": "Takes some integers.",
79 "parameters": [
80 {
81 "name": "nums",
82 "type": "array",
83 "items": {"type": "integer"}
84 },
85 {
86 "name": "callback",
87 "type": "function",
88 "parameters": []
89 }
90 ]
91 },
92 {
93 "name": "anyArray",
94 "type": "function",
95 "description": "Takes some Items.",
96 "parameters": [
97 {
98 "name": "anys",
99 "type": "array",
100 "items": {"type": "any"}
101 },
102 {
103 "name": "callback",
104 "type": "function",
105 "parameters": []
106 }
107 ]
108 },
109 {
110 "name": "objectArray",
111 "type": "function",
112 "description": "Takes some Items.",
113 "parameters": [
114 {
115 "name": "objects",
116 "type": "array",
117 "items": {
118 "type": "object",
119 "additionalProperties": {"type": "integer"}
120 }
121 },
122 {
123 "name": "callback",
124 "type": "function",
125 "parameters": []
126 }
127 ]
128 },
129 {
130 "name": "refArray",
131 "type": "function",
132 "description": "Takes some Items.",
133 "parameters": [
134 {
135 "name": "refs",
136 "type": "array",
137 "items": {"$ref": "Item"}
138 },
139 {
140 "name": "callback",
141 "type": "function",
142 "parameters": []
143 }
144 ]
145 },
146 {
147 "name": "justChoices",
148 "type": "function",
149 "description": "Takes some Choices.",
150 "parameters": [
151 {
152 "name": "choices",
153 "choices": [
154 { "type": "integer" },
155 { "type": "boolean" },
156 { "type": "array",
157 "items": {"$ref": "Item"}
158 }
159 ]
160 },
161 {
162 "name": "callback",
163 "type": "function",
164 "parameters": []
165 }
166 ]
167 },
168 {
169 "name": "choicesArray",
170 "type": "function",
171 "description": "Takes some Choices.",
172 "parameters": [
173 {
174 "name": "choices",
175 "type": "array",
176 "items": {
177 "choices": [
178 { "type": "integer" },
179 { "type": "boolean" },
180 { "type": "array",
181 "items": {"$ref": "Item"}
182 }
183 ]
184 }
185 },
186 {
187 "name": "callback",
188 "type": "function",
189 "parameters": []
190 }
191 ]
192 },
193 {
194 "name": "returnIntegerArray",
195 "type": "function",
196 "description": "Returns some integers.",
197 "parameters": [
198 {
199 "name": "callback",
200 "type": "function",
201 "parameters": [
202 {
203 "name": "integers",
204 "type": "array",
205 "items": {"type": "integer"}
206 }
207 ]
208 }
209 ]
210 },
211 {
212 "name": "returnRefArray",
213 "type": "function",
214 "description": "Returns some Items.",
215 "parameters": [
216 {
217 "name": "callback",
218 "type": "function",
219 "parameters": [
220 {
221 "name": "refs",
222 "type": "array",
223 "items": {"$ref": "Item"}
224 }
225 ]
226 }
227 ]
228 }
229 ]
230 }
231 ]
OLDNEW
« no previous file with comments | « third_party/chrome/tools/test/any.json ('k') | third_party/chrome/tools/test/browser_action.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698