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

Side by Side Diff: tools/json_schema_compiler/test/idl_pepper.idl

Issue 101483003: Add a Pepper IDL generator to the JSON schema compiler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Tests Pepper API generation.
6
7 [internal] namespace idl_pepper {
8 enum EnumType {
9 name1,
10 name2
11 };
12
13 enum AnotherEnumType {
14 name1,
15 name2
16 };
17
18 dictionary MyType3 {
19 MyType1 a;
20 };
21
22 dictionary MyType2 {
23 MyType1 a;
24 };
25
26 dictionary MyType4 {
27 MyType1 a;
28 };
29
30 dictionary MyType5 {
31 MyType3[] a;
32 MyType4? b;
33 };
34
35 dictionary MyType6 {
36 MyType5 a;
37 };
38
39 dictionary MyType0 {
40 };
41
42 dictionary MyType1 {
43 long int_single;
44 long[] int_array;
45 long? optional_int;
46 long[]? optional_int_array;
47 double double_single;
48 double[] double_array;
49 double? optional_double;
50 double[]? optional_double_array;
51 DOMString string;
52 DOMString[] string_array;
53 DOMString? optional_string;
54 DOMString[]? optional_string_array;
55 EnumType enum_single;
56 EnumType[] enum_array;
57 EnumType? optional_enum;
58 EnumType[]? optional_enum_array;
59 MyType0 struct_single;
60 MyType0[] struct_array;
61 MyType0? optional_struct;
62 MyType0[]? optional_struct_array;
63 };
64
65 callback Callback1 = void(MyType5 arg);
66 callback Callback2 = void(double arg);
67
68 interface Functions {
69 static void function1(optional MyType2[] arg);
70 static void function2(optional MyType3 arg);
71 static void function3(Callback1 cb);
72 static void function4(Callback2 cb);
73 static double function5();
74 static MyType5 function6();
75 };
76
77 interface Events {
78 static void onFoo1(MyType6 arg);
79 };
80 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698