| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 BarType { | 7 enum BarType { |
| 8 BAR_VERTICAL = 1, | 8 BAR_VERTICAL = 1 << 0, |
| 9 BAR_HORIZONTAL = 2, | 9 BAR_HORIZONTAL = (1 << 1) + 0, |
| 10 BAR_BOTH = BAR_VERTICAL | BAR_HORIZONTAL, |
| 10 BAR_INVALID | 11 BAR_INVALID |
| 11 }; | 12 }; |
| 12 | 13 |
| 13 struct Bar { | 14 struct Bar { |
| 14 uint8 alpha @0; | 15 uint8 alpha @0; |
| 15 uint8 beta @1; | 16 uint8 beta @1; |
| 16 uint8 gamma @2; | 17 uint8 gamma @2; |
| 17 int32 type @3; | 18 int32 type @3; |
| 18 }; | 19 }; |
| 19 | 20 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 }; | 42 }; |
| 42 void Frobinate(Foo foo @0, int32 baz @1, handle<message_pipe> port @2) @0; | 43 void Frobinate(Foo foo @0, int32 baz @1, handle<message_pipe> port @2) @0; |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 [Peer=Service] | 46 [Peer=Service] |
| 46 interface ServiceClient { | 47 interface ServiceClient { |
| 47 void DidFrobinate(int32 result @0) @0; | 48 void DidFrobinate(int32 result @0) @0; |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } | 51 } |
| OLD | NEW |