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

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

Issue 295583005: Update mojom example files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix js tests Created 6 years, 7 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", 5 [JavaPackage="org.chromium.mojo.bindings.test.sample",
6 Foo = "hello world"] 6 Foo = "hello world"]
7 module sample { 7 module sample {
8 8
9 enum Enum { 9 enum Enum {
10 ENUM_VALUE 10 ENUM_VALUE
11 }; 11 };
12 12
13 [Client=ProviderClient] 13 [Client=ProviderClient]
14 interface Provider { 14 interface Provider {
15 EchoString(string a) => (string a); 15 EchoString(string a) => (string a);
16 EchoStrings(string a, string b) => (string a, string b); 16 EchoStrings(string a, string b) => (string a, string b);
17 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a); 17 EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a);
18 EchoEnum(Enum a) => (Enum a); 18 EchoEnum(Enum a) => (Enum a);
19 }; 19 };
20 20
21 // TODO(darin): We shouldn't need this, but JS bindings don't work without it. 21 // TODO(darin): We shouldn't need this, but JS bindings don't work without it.
22 interface ProviderClient { 22 interface ProviderClient {
23 }; 23 };
24 24
25 } 25 }
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