blob: b331d21a4c58cf678cc58a20017afa8368f1e3e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module mojo.test;
interface FooInterface {};
struct StructContainsAssociated {
associated FooInterface? foo_interface;
associated FooInterface& foo_request;
};
union UnionContainsAssociated {
associated FooInterface foo_interface;
associated FooInterface& foo_request;
};
interface InterfacePassesAssociated {
PassFoo(associated FooInterface foo_interface,
associated FooInterface& foo_request) =>
(associated FooInterface foo_interface,
associated FooInterface& foo_request);
PassStruct(StructContainsAssociated foo_struct) =>
(StructContainsAssociated foo_struct);
PassUnion(UnionContainsAssociated foo_union) =>
(UnionContainsAssociated foo_union);
};
interface IntegerSender {
Echo(int32 value) => (int32 value);
Send(int32 value);
};
interface IntegerSenderConnection {
GetSender(associated IntegerSender& sender);
AsyncGetSender() => (associated IntegerSender sender);
};
|