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

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

Issue 262633005: Adding attributes to module and struct in mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix annotations 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 module sample { 6 module sample {
6 7
7 // This sample shows how handles to MessagePipes can be sent as both parameters 8 // This sample shows how handles to MessagePipes can be sent as both parameters
8 // to methods as well as fields on structs. 9 // to methods as well as fields on structs.
9 10
10 struct Request { 11 struct Request {
11 int32 x; 12 int32 x;
12 handle<message_pipe> pipe; 13 handle<message_pipe> pipe;
13 handle<message_pipe>[] more_pipes; 14 handle<message_pipe>[] more_pipes;
14 }; 15 };
15 16
16 struct Response { 17 struct Response {
17 int32 x; 18 int32 x;
18 handle<message_pipe> pipe; 19 handle<message_pipe> pipe;
19 }; 20 };
20 21
21 [Peer=FactoryClient] 22 [Peer=FactoryClient]
22 interface Factory { 23 interface Factory {
23 DoStuff(Request request, handle<message_pipe> pipe); 24 DoStuff(Request request, handle<message_pipe> pipe);
24 DoStuff2(handle<data_pipe_consumer> pipe); 25 DoStuff2(handle<data_pipe_consumer> pipe);
25 }; 26 };
26 27
27 [Peer=Factory] 28 [Peer=Factory]
28 interface FactoryClient { 29 interface FactoryClient {
29 DidStuff(Response response, string text); 30 DidStuff(Response response, string text);
30 DidStuff2(string text); 31 DidStuff2(string text);
31 }; 32 };
32 33
33 } // module sample 34 } // module sample
OLDNEW
« no previous file with comments | « mojo/public/interfaces/bindings/tests/math_calculator.mojom ('k') | mojo/public/interfaces/bindings/tests/sample_import.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698