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

Side by Side Diff: tools/json_schema_compiler/test/callbacks.json

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Tested GetAllPossibleParameterLists better. Created 8 years, 5 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "objects", 3 "namespace": "callbacks",
4 "types": [], 4 "types": [],
5 "functions": [ 5 "functions": [
6 { 6 {
7 "name": "objectParam", 7 "name": "returnsNothing",
8 "type": "function", 8 "type": "function",
9 "description": "Takes an object.", 9 "description": "Takes nothing. Returns nothing.",
10 "parameters": [ 10 "parameters": [
11 { 11 {
12 "name": "info",
13 "type": "object",
14 "properties": {
15 "strings": {
16 "type": "array",
17 "items": {"type": "string"}
18 },
19 "integer": {
20 "type": "integer"
21 },
22 "boolean": {
23 "type": "boolean"
24 }
25 }
26 },
27 {
28 "name": "callback", 12 "name": "callback",
29 "type": "function", 13 "type": "function",
30 "parameters": [] 14 "parameters": []
31 } 15 }
32 ] 16 ]
33 }, 17 },
34 { 18 {
35 "name": "returnsObject", 19 "name": "returnsObject",
36 "description": "Returns an object.", 20 "description": "Returns an object.",
37 "type": "function", 21 "type": "function",
38 "parameters": [ 22 "parameters": [
39 { 23 {
40 "name": "callback", 24 "name": "callback",
41 "type": "function", 25 "type": "function",
42 "parameters": [ 26 "parameters": [
43 { 27 {
44 "name": "info", 28 "name": "someObject",
45 "type": "object", 29 "type": "object",
46 "properties": { 30 "properties": {
47 "state": { 31 "state": {
32 "type": "string",
33 "enum": ["foo", "bar", "baz"]
34 }
35 }
36 }
37 ]
38 }
39 ]
40 },
41 {
42 "name": "returnsMultiple",
43 "description": "Returns an object.",
44 "type": "function",
45 "parameters": [
46 {
47 "name": "callback",
48 "type": "function",
49 "parameters": [
50 {
51 "name": "someInteger",
52 "type": "integer"
53 },
54 {
55 "name": "someObject",
56 "type": "object",
57 "properties": {
58 "state": {
48 "type": "string", 59 "type": "string",
49 "enum": ["foo", "bar", "baz"] 60 "enum": ["foo", "bar", "baz"]
50 } 61 }
51 } 62 }
52 } 63 }
53 ] 64 ]
54 } 65 }
55 ] 66 ]
56 } 67 }
57 ] 68 ]
58 } 69 }
59 ] 70 ]
60 71
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698