OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Tests a variety of basic API definition features. | 5 // Tests a variety of basic API definition features. |
6 | 6 |
7 [internal] namespace idl_basics { | 7 [internal] namespace idl_basics { |
8 // Enum description | 8 // Enum description |
9 enum EnumType { | 9 enum EnumType { |
10 // comment1 | 10 // comment1 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // "switch" is a reserved word and should cause a C++ compile error if we | 75 // "switch" is a reserved word and should cause a C++ compile error if we |
76 // emit code for this declaration. | 76 // emit code for this declaration. |
77 [nocompile] static void function15(long switch); | 77 [nocompile] static void function15(long switch); |
78 | 78 |
79 static void function16(Callback6 cb); | 79 static void function16(Callback6 cb); |
80 static void function17(Callback7 cb); | 80 static void function17(Callback7 cb); |
81 // |cb|: Override callback comment. | 81 // |cb|: Override callback comment. |
82 static void function18(Callback7 cb); | 82 static void function18(Callback7 cb); |
83 | 83 |
84 static long function19(); | 84 static void function20(idl_other_namespace.SomeType value); |
85 static MyType1 function20(); | 85 static void function21(idl_other_namespace.SomeType[] values); |
86 static MyType1[] function21(); | 86 static void function22( |
87 static EnumType function22(); | 87 idl_other_namespace.sub_namespace.AnotherType value); |
88 static EnumType[] function23(); | 88 static void function23( |
| 89 idl_other_namespace.sub_namespace.AnotherType[] values); |
| 90 |
| 91 static long function24(); |
| 92 static MyType1 function25(); |
| 93 static MyType1[] function26(); |
| 94 static EnumType function27(); |
| 95 static EnumType[] function28(); |
| 96 static idl_other_namespace.SomeType function29(); |
| 97 static idl_other_namespace.SomeType[] function30(); |
89 }; | 98 }; |
90 | 99 |
91 interface Events { | 100 interface Events { |
92 static void onFoo1(); | 101 static void onFoo1(); |
93 static void onFoo2(long x); | 102 static void onFoo2(long x); |
94 static void onFoo2(MyType1 arg); | 103 static void onFoo2(MyType1 arg); |
95 static void onFoo3(EnumType type); | 104 static void onFoo3(EnumType type); |
96 }; | 105 }; |
97 }; | 106 }; |
OLD | NEW |