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.sample", | 5 [JavaPackage="org.chromium.mojo.bindings.test.sample", |
6 JavaConstantsClassName="InterfaceConstants", | |
6 Foo = "hello world"] | 7 Foo = "hello world"] |
7 module sample { | 8 module sample { |
8 | 9 |
10 const uint64 kLong = (879+2)*5; | |
rmcilroy
2014/05/28 17:03:30
nit - spaces between binary operators. Could we a
viettrungluu
2014/05/28 19:10:26
Note that I'm going to remove all expressions shor
| |
11 | |
9 enum Enum { | 12 enum Enum { |
10 ENUM_VALUE | 13 ENUM_VALUE |
11 }; | 14 }; |
12 | 15 |
13 [Client=ProviderClient] | 16 [Client=ProviderClient] |
14 interface Provider { | 17 interface Provider { |
15 EchoString(string a) => (string a); | 18 EchoString(string a) => (string a); |
16 EchoStrings(string a, string b) => (string a, string b); | 19 EchoStrings(string a, string b) => (string a, string b); |
17 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); | 20 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); |
18 EchoEnum(Enum a) => (Enum a); | 21 EchoEnum(Enum a) => (Enum a); |
19 }; | 22 }; |
20 | 23 |
21 // TODO(darin): We shouldn't need this, but JS bindings don't work without it. | 24 // TODO(darin): We shouldn't need this, but JS bindings don't work without it. |
22 interface ProviderClient { | 25 interface ProviderClient { |
23 }; | 26 }; |
24 | 27 |
25 } | 28 } |
OLD | NEW |