| 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 'reserved words' in various places in IDL. |
| 6 |
| 5 namespace reserved_words { | 7 namespace reserved_words { |
| 6 | 8 |
| 7 enum Foo { _float, _DOMString }; | 9 enum Foo { _float, _DOMString }; |
| 8 | 10 |
| 9 enum _enum { | 11 enum _enum { |
| 10 _callback, | 12 _callback, |
| 11 _namespace | 13 _namespace |
| 12 }; | 14 }; |
| 13 | 15 |
| 14 dictionary _dictionary { | 16 dictionary _dictionary { |
| 15 long _long; | 17 long _long; |
| 16 }; | 18 }; |
| 17 | 19 |
| 18 dictionary MyType { | 20 dictionary MyType { |
| 19 DOMString _interface; | 21 DOMString _interface; |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 interface Functions { | 24 interface Functions { |
| 23 static void _static(Foo foo, _enum e); | 25 static void _static(Foo foo, _enum e); |
| 24 }; | 26 }; |
| 25 }; | 27 }; |
| OLD | NEW |