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 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample", | |
6 JavaConstantsClassName="InterfaceConstants", | |
7 Foo = "hello world"] | |
8 module sample; | |
9 | |
10 const uint64 kLong = 4405; | |
11 | |
12 enum Enum { | |
13 VALUE | |
14 }; | |
15 | |
16 [Client=ProviderClient] | |
17 interface Provider { | |
18 EchoString(string a) => (string a); | |
19 EchoStrings(string a, string b) => (string a, string b); | |
20 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); | |
21 EchoEnum(Enum a) => (Enum a); | |
22 }; | |
23 | |
24 // TODO(darin): We shouldn't need this, but JS bindings don't work without it. | |
25 interface ProviderClient { | |
26 }; | |
OLD | NEW |