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

Side by Side Diff: third_party/chrome/tools/test/enums.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": "enums",
4 "types": [
5 {
6 "id": "Enumeration",
7 "type": "string",
8 "enum": ["one", "two", "three"]
9 },
10 {
11 "id": "EnumType",
12 "type": "object",
13 "properties": {
14 "type": {
15 "type": "string",
16 "enum": ["one", "two", "three"]
17 }
18 }
19 },
20 {
21 "id": "HasEnumeration",
22 "type": "object",
23 "properties": {
24 "enumeration": {
25 "$ref": "Enumeration"
26 },
27 "optional_enumeration": {
28 "$ref": "Enumeration",
29 "optional": true
30 }
31 }
32 },
33 {
34 "id": "OptionalEnumType",
35 "type": "object",
36 "properties": {
37 "type": {
38 "type": "string",
39 "enum": ["one", "two", "three"],
40 "optional": true
41 }
42 }
43 }
44 ],
45 "functions": [
46 {
47 "name": "takesEnum",
48 "type": "function",
49 "description": "Takes an enum as its parameter.",
50 "parameters": [
51 {
52 "name": "state",
53 "type": "string",
54 "enum": ["foo", "bar", "baz"]
55 },
56 {
57 "name": "callback",
58 "type": "function",
59 "parameters": []
60 }
61 ]
62 },
63 {
64 "name": "takesEnumAsType",
65 "type": "function",
66 "description": "Takes an enum type as its parameter.",
67 "parameters": [
68 {
69 "name": "enumeration",
70 "$ref": "Enumeration"
71 },
72 {
73 "name": "callback",
74 "type": "function",
75 "parameters": []
76 }
77 ]
78 },
79 {
80 "name": "returnsEnum",
81 "type": "function",
82 "description": "Returns an enum through the callback",
83 "parameters": [
84 {
85 "name": "callback",
86 "type": "function",
87 "parameters": [
88 {
89 "name": "state",
90 "type": "string",
91 "enum": ["foo", "bar", "baz"]
92 }
93 ]
94 }
95 ]
96 },
97 {
98 "name": "returnsEnumAsType",
99 "type": "function",
100 "description": "Returns an enum through the callback",
101 "parameters": [
102 {
103 "name": "callback",
104 "type": "function",
105 "parameters": [
106 {
107 "name": "enumeration",
108 "$ref": "Enumeration"
109 }
110 ]
111 }
112 ]
113 },
114 {
115 "name": "returnsTwoEnums",
116 "type": "function",
117 "description": "Returns two enums through the callback",
118 "parameters": [
119 {
120 "name": "callback",
121 "type": "function",
122 "parameters": [
123 {
124 "name": "firstState",
125 "type": "string",
126 "enum": ["foo", "bar", "baz"]
127 },
128 {
129 "name": "secondState",
130 "type": "string",
131 "enum": ["spam", "ham", "eggs"]
132 }
133 ]
134 }
135 ]
136 },
137 {
138 "name": "takesOptionalEnum",
139 "type": "function",
140 "description": "Takes an enum as its parameter.",
141 "parameters": [
142 {
143 "name": "state",
144 "type": "string",
145 "enum": ["foo", "bar", "baz"],
146 "optional": true
147 },
148 {
149 "name": "callback",
150 "type": "function",
151 "parameters": []
152 }
153 ]
154 },
155 {
156 "name": "takesMultipleOptionalEnums",
157 "type": "function",
158 "description": "Takes two enums as parameters.",
159 "parameters": [
160 {
161 "name": "state",
162 "type": "string",
163 "enum": ["foo", "bar", "baz"],
164 "optional": true
165 },
166 {
167 "name": "type",
168 "type": "string",
169 "enum": ["foo", "ding", "dong"],
170 "optional": true
171 },
172 {
173 "name": "callback",
174 "type": "function",
175 "parameters": []
176 }
177 ]
178 }
179 ],
180 "events": [
181 {
182 "name": "onEnumFired",
183 "type": "function",
184 "description": "Fired when an enum is ready.",
185 "parameters": [
186 {
187 "name": "someEnum",
188 "type": "string",
189 "enum": ["foo", "bar", "baz"]
190 }
191 ]
192 },
193 {
194 "name": "onTwoEnumsFired",
195 "type": "function",
196 "description": "Fired when two enums are ready.",
197 "parameters": [
198 {
199 "name": "firstEnum",
200 "type": "string",
201 "enum": ["foo", "bar", "baz"]
202 },
203 {
204 "name": "secondEnum",
205 "type": "string",
206 "enum": ["spam", "ham", "eggs"]
207 }
208 ]
209 }
210 ]
211 }
212 ]
OLDNEW
« no previous file with comments | « third_party/chrome/tools/test/dependency_tester.json ('k') | third_party/chrome/tools/test/font_settings.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698