OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 [JavaPackage="org.chromium.mojo.bindings.test", |
| 6 Foo = "hello world"] |
5 module sample { | 7 module sample { |
6 | 8 |
7 enum Enum { | 9 enum Enum { |
8 ENUM_VALUE | 10 ENUM_VALUE |
9 }; | 11 }; |
10 | 12 |
11 [Peer=ProviderClient] | 13 [Peer=ProviderClient] |
12 interface Provider { | 14 interface Provider { |
13 EchoString(string a) => (string a); | 15 EchoString(string a) => (string a); |
14 EchoStrings(string a, string b) => (string a, string b); | 16 EchoStrings(string a, string b) => (string a, string b); |
15 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); | 17 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); |
16 EchoEnum(Enum a) => (Enum a); | 18 EchoEnum(Enum a) => (Enum a); |
17 }; | 19 }; |
18 | 20 |
19 [Peer=Provider] | 21 [Peer=Provider] |
20 interface ProviderClient { | 22 interface ProviderClient { |
21 }; | 23 }; |
22 | 24 |
23 } | 25 } |
OLD | NEW |