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

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

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced. 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": "simple_api", 3 "namespace": "simple_api",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "TestType", 6 "id": "TestType",
7 "type": "object", 7 "type": "object",
8 "properties": { 8 "properties": {
9 "string": { 9 "string": {
10 "type": "string", 10 "type": "string",
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 "parameters": [ 115 "parameters": [
116 { 116 {
117 "name": "result", 117 "name": "result",
118 "$ref": "TestType", 118 "$ref": "TestType",
119 "description": "A TestType." 119 "description": "A TestType."
120 } 120 }
121 ] 121 ]
122 } 122 }
123 ] 123 ]
124 } 124 }
125 ],
126 "events": [
127 {
128 "name": "onIntegerFired",
129 "type": "function",
130 "description": "Fired when an integer is ready.",
131 "parameters": [
132 {
133 "name": "someInteger",
134 "type": "integer"
135 }
136 ]
137 },
138 {
139 "name": "onStringFired",
140 "type": "function",
141 "description": "Fired when a string is ready.",
142 "parameters": [
143 {
144 "name": "someString",
145 "type": "string"
146 }
147 ]
148 },
149 {
150 "name": "onTestTypeFired",
151 "type": "function",
152 "description": "Fired when a TestType is ready.",
153 "parameters": [
154 {
155 "name": "someTestType",
156 "$ref": "TestType"
157 }
158 ]
159 }
125 ] 160 ]
126 } 161 }
127 ] 162 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/objects_unittest.cc ('k') | tools/json_schema_compiler/test/simple_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698