| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module sample; | 5 module sample; |
| 6 | 6 |
| 7 enum EnumeratedValue { | 7 enum EnumeratedValue { |
| 8 VALUE1, VALUE2, VALUE3, | 8 VALUE1, |
| 9 VALUE2, |
| 10 VALUE3, |
| 9 }; | 11 }; |
| 10 | 12 |
| 11 struct StructuredData { | 13 struct StructuredData { |
| 12 EnumeratedValue data1; | 14 EnumeratedValue data1; |
| 13 int32 data2; | 15 int32 data2; |
| 14 }; | 16 }; |
| 15 | 17 |
| 16 interface Interface { | 18 interface Interface { |
| 17 SomeMethod(); | 19 SomeMethod(); |
| 18 }; | 20 }; |
| 19 | 21 |
| 20 union AlternativeOptions { | 22 union AlternativeOptions { |
| 21 int32 integer_option; | 23 int32 integer_option; |
| 22 float floating_point_option; | 24 float floating_point_option; |
| 23 }; | 25 }; |
| 24 | 26 |
| 25 const int32 DOES_NOT_CHANGE = 42; | 27 const int32 DOES_NOT_CHANGE = 42; |
| OLD | NEW |