Roll src/third_party/WebKit 6f84130:7353389 (svn 184386:184391)
[chromium-blink-merge.git] / tools / json_schema_compiler / test / callbacks.json
blob2f86c26e15e07c36ee913b0798d6c59cab33f172
2   {
3     "namespace": "callbacks",
4     "description": "The callbacks API.",
5     "types": [],
6     "functions": [
7       {
8         "name": "returnsNothing",
9         "type": "function",
10         "description": "Takes nothing. Returns nothing.",
11         "parameters": [
12           {
13             "name": "callback",
14             "type": "function",
15             "parameters": []
16           }
17         ]
18       },
19       {
20         "name": "returnsObject",
21         "description": "Returns an object.",
22         "type": "function",
23         "parameters": [
24           {
25             "name": "callback",
26             "type": "function",
27             "parameters": [
28               {
29                 "name": "someObject",
30                 "type": "object",
31                 "properties": {
32                   "state": {
33                     "type": "string",
34                     "enum": ["foo", "bar", "baz"]
35                   }
36                 }
37               }
38             ]
39           }
40         ]
41       },
42       {
43         "name": "returnsMultiple",
44         "description": "Returns an object.",
45         "type": "function",
46         "parameters": [
47           {
48             "name": "callback",
49             "type": "function",
50             "parameters": [
51               {
52                 "name": "someInteger",
53                 "type": "integer"
54               },
55               {
56                 "name": "someObject",
57                 "type": "object",
58                 "properties": {
59                   "state": {
60                     "type": "string",
61                     "enum": ["foo", "bar", "baz"]
62                   }
63                 }
64               }
65             ]
66           }
67         ]
68       }
69     ]
70   }