| 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 namespace idl_basics { |
| 8 // Enum description |
| 8 enum EnumType { | 9 enum EnumType { |
| 9 name1, | 10 name1, |
| 10 name2 | 11 name2 |
| 11 }; | 12 }; |
| 12 | 13 |
| 13 dictionary MyType1 { | 14 dictionary MyType1 { |
| 14 long x; // This comment tests "double-quotes". | 15 long x; // This comment tests "double-quotes". |
| 15 DOMString y; | 16 DOMString y; |
| 16 }; | 17 }; |
| 17 | 18 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 [nocompile] static void function15(long switch); | 52 [nocompile] static void function15(long switch); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 interface Events { | 55 interface Events { |
| 55 static void onFoo1(); | 56 static void onFoo1(); |
| 56 static void onFoo2(long x); | 57 static void onFoo2(long x); |
| 57 static void onFoo2(MyType1 arg); | 58 static void onFoo2(MyType1 arg); |
| 58 static void onFoo3(EnumType type); | 59 static void onFoo3(EnumType type); |
| 59 }; | 60 }; |
| 60 }; | 61 }; |
| OLD | NEW |