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 // HYPOTHETICAL IDL: | 5 // HYPOTHETICAL IDL: |
6 | 6 |
7 module sample { | 7 module sample { |
8 | 8 |
9 struct Bar { | 9 struct Bar { |
10 uint8 alpha @0; | 10 uint8 alpha @0; |
11 uint8 beta @1; | 11 uint8 beta @1; |
12 uint8 gamma @2; | 12 uint8 gamma @2; |
13 }; | 13 }; |
14 | 14 |
15 [RequiredFields=7] | 15 [RequiredFields=7] |
16 struct Foo { | 16 struct Foo { |
17 string name @8; | 17 string name @8; |
18 int32 x @0; | 18 int32 x @0; |
19 int32 y @1; | 19 int32 y @1; |
20 bool a @2; | 20 bool a @2; |
21 bool b @3; | 21 bool b @3; |
22 bool c @4; | 22 bool c @4; |
23 Bar bar @5; | 23 Bar bar @5; |
24 Bar[] extra_bars @7; | 24 Bar[] extra_bars @7; |
25 uint8[] data @6; | 25 uint8[] data @6; |
26 handle[] files @9; | 26 handle[] files @9; |
27 }; | 27 }; |
28 | 28 |
| 29 [Peer=ServiceClient] |
29 interface Service { | 30 interface Service { |
30 void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0; | 31 void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0; |
31 }; | 32 }; |
32 | 33 |
| 34 [Peer=Service] |
| 35 interface ServiceClient { |
| 36 void DidFrobinate(int32 result @0) @0; |
| 37 }; |
| 38 |
33 } | 39 } |
OLD | NEW |