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.
5 // Tests Pepper API generation.
7 [internal
] namespace idlPepper
{
13 enum AnotherEnumType
{
49 long[]? optional_int_array
;
51 double[] double_array
;
52 double? optional_double
;
53 double[]? optional_double_array
;
55 DOMString
[] string_array
;
56 DOMString? optional_string
;
57 DOMString
[]? optional_string_array
;
59 EnumType
[] enum_array
;
60 EnumType? optional_enum
;
61 EnumType
[]? optional_enum_array
;
62 MyType0 struct_single
;
63 MyType0
[] struct_array
;
64 MyType0? optional_struct
;
65 MyType0
[]? optional_struct_array
;
68 callback Callback1
= void(MyType5 arg
);
69 callback Callback2
= void(double arg
);
70 callback Callback3
= void(double[] arg
);
71 callback Callback4
= void(MyType0
[] arg
);
72 callback Callback5
= void(MyType0 arg
);
75 static
void function1
(optional MyType2
[] arg
);
76 static
void function2
(optional MyType3 arg
);
77 static
void function3
(Callback1 cb
);
78 static
void function4
(Callback2 cb
);
79 static
double function5
();
80 static MyType5 function6
();
81 static
void function7
(Callback3 cb
);
82 static
void function8
(Callback4 cb
);
83 static
void function9
(Callback5 cb
);
84 static
double[] function10
();
85 static MyType0
[] function11
();
86 static MyType0 function12
();
87 static
void function13
(MyType arg
);
91 static
void onFoo1
(MyType6 arg
);