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 namespace idl_basics { | 7 [internal] namespace idl_basics { |
8 // Enum description | 8 // Enum description |
9 enum EnumType { | 9 enum EnumType { |
10 name1, | 10 name1, |
11 name2 | 11 name2 |
12 }; | 12 }; |
13 | 13 |
14 dictionary MyType1 { | 14 dictionary MyType1 { |
15 // This comment tests "double-quotes". | 15 // This comment tests "double-quotes". |
16 [legalValues=(1,2)] long x; | 16 [legalValues=(1,2)] long x; |
17 DOMString y; | 17 DOMString y; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 [nocompile] static void function15(long switch); | 60 [nocompile] static void function15(long switch); |
61 }; | 61 }; |
62 | 62 |
63 interface Events { | 63 interface Events { |
64 static void onFoo1(); | 64 static void onFoo1(); |
65 static void onFoo2(long x); | 65 static void onFoo2(long x); |
66 static void onFoo2(MyType1 arg); | 66 static void onFoo2(MyType1 arg); |
67 static void onFoo3(EnumType type); | 67 static void onFoo3(EnumType type); |
68 }; | 68 }; |
69 }; | 69 }; |
OLD | NEW |