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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 static long function24(); | 96 static long function24(); |
97 static MyType1 function25(); | 97 static MyType1 function25(); |
98 static MyType1[] function26(); | 98 static MyType1[] function26(); |
99 static EnumType function27(); | 99 static EnumType function27(); |
100 static EnumType[] function28(); | 100 static EnumType[] function28(); |
101 static idl_other_namespace.SomeType function29(); | 101 static idl_other_namespace.SomeType function29(); |
102 static idl_other_namespace.SomeType[] function30(); | 102 static idl_other_namespace.SomeType[] function30(); |
103 | 103 |
104 [nodefine] static void function31(long switch); | 104 [nodefine] static void function31(long switch); |
| 105 |
| 106 [forIOThread] static void function32(); |
105 }; | 107 }; |
106 | 108 |
107 interface Events { | 109 interface Events { |
108 static void onFoo1(); | 110 static void onFoo1(); |
109 static void onFoo2(long x); | 111 static void onFoo2(long x); |
110 static void onFoo2(MyType1 arg); | 112 static void onFoo2(MyType1 arg); |
111 static void onFoo3(EnumType type); | 113 static void onFoo3(EnumType type); |
112 }; | 114 }; |
113 }; | 115 }; |
OLD | NEW |