OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 | |
6 [JavaPackage="org.chromium.mojo.bindings.test.mojom.mojo"] | |
7 module mojo.test; | |
8 | |
9 struct StructA { | |
10 uint64 i; | |
11 }; | |
12 | |
13 struct StructB { | |
14 StructA struct_a; | |
15 }; | |
16 | |
17 struct StructC { | |
18 array<uint8> data; | |
19 }; | |
20 | |
21 struct StructD { | |
22 array<handle<message_pipe>> message_pipes; | |
23 }; | |
24 | |
25 struct StructE { | |
26 StructD struct_d; | |
27 handle<data_pipe_consumer> data_pipe_consumer; | |
28 }; | |
29 | |
30 struct StructF { | |
31 array<uint8, 3> fixed_size_array; | |
32 }; | |
33 | |
34 interface ConformanceTestInterface { | |
35 Method0(float param0); | |
36 Method1(StructA param0); | |
37 Method2(StructB param0, StructA param1); | |
38 Method3(array<bool> param0); | |
39 Method4(StructC param0, array<uint8> param1); | |
40 Method5(StructE param0, handle<data_pipe_producer> param1); | |
41 Method6(array<array<uint8>> param0); | |
42 Method7(StructF param0, array<array<uint8, 3>?, 2> param1); | |
43 Method8(array<array<string>?> param0); | |
44 Method9(array<array<handle?>>? param0); | |
45 Method10(map<string, uint8> param0); | |
46 }; | |
47 | |
48 struct BasicStruct { | |
49 int32 a; | |
50 }; | |
51 | |
52 [Client=IntegrationTestInterface2] | |
53 interface IntegrationTestInterface1 { | |
54 Method0(BasicStruct param0); | |
55 }; | |
56 | |
57 [Client=IntegrationTestInterface1] | |
58 interface IntegrationTestInterface2 { | |
59 Method0() => (array<uint8> param0); | |
60 }; | |
OLD | NEW |