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 | |
11 name1, | 10 name1, |
12 name2 | 11 name2 |
13 }; | 12 }; |
14 | 13 |
15 [nodoc] enum EnumTypeWithNoDoc { | 14 [nodoc] enum EnumTypeWithNoDoc { |
16 name1, | 15 name1, |
17 name2 | 16 name2 |
18 }; | 17 }; |
19 | 18 |
20 dictionary MyType1 { | 19 dictionary MyType1 { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 static void function18(Callback7 cb); | 81 static void function18(Callback7 cb); |
83 }; | 82 }; |
84 | 83 |
85 interface Events { | 84 interface Events { |
86 static void onFoo1(); | 85 static void onFoo1(); |
87 static void onFoo2(long x); | 86 static void onFoo2(long x); |
88 static void onFoo2(MyType1 arg); | 87 static void onFoo2(MyType1 arg); |
89 static void onFoo3(EnumType type); | 88 static void onFoo3(EnumType type); |
90 }; | 89 }; |
91 }; | 90 }; |
OLD | NEW |