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