Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: mojo/public/interfaces/bindings/tests/sample_interfaces.mojom

Issue 306893010: Generate java bindings for structs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload after revert Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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.mojom.sample",
6 JavaConstantsClassName="InterfaceConstants", 6 JavaConstantsClassName="InterfaceConstants",
7 Foo = "hello world"] 7 Foo = "hello world"]
8 module sample { 8 module sample {
9 9
10 const uint64 kLong = 4405; 10 const uint64 kLong = 4405;
11 11
12 enum Enum { 12 enum Enum {
13 ENUM_VALUE 13 ENUM_VALUE
14 }; 14 };
15 15
16 [Client=ProviderClient] 16 [Client=ProviderClient]
17 interface Provider { 17 interface Provider {
18 EchoString(string a) => (string a); 18 EchoString(string a) => (string a);
19 EchoStrings(string a, string b) => (string a, string b); 19 EchoStrings(string a, string b) => (string a, string b);
20 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); 20 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a);
21 EchoEnum(Enum a) => (Enum a); 21 EchoEnum(Enum a) => (Enum a);
22 }; 22 };
23 23
24 // 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.
25 interface ProviderClient { 25 interface ProviderClient {
26 }; 26 };
27 27
28 } 28 }
OLDNEW
« no previous file with comments | « mojo/public/interfaces/bindings/tests/sample_import2.mojom ('k') | mojo/public/interfaces/bindings/tests/sample_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698