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

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

Issue 219243011: Mojo: Move mojo/public/bindings/tests/*.mojom to mojo/public/interfaces/bindings/tests/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 module sample {
6
7 // This sample shows how handles to MessagePipes can be sent as both parameters
8 // to methods as well as fields on structs.
9
10 struct Request {
11 int32 x;
12 handle<message_pipe> pipe;
13 };
14
15 struct Response {
16 int32 x;
17 handle<message_pipe> pipe;
18 };
19
20 [Peer=FactoryClient]
21 interface Factory {
22 DoStuff(Request request, handle<message_pipe> pipe);
23 DoStuff2(handle<data_pipe_consumer> pipe);
24 };
25
26 [Peer=Factory]
27 interface FactoryClient {
28 DidStuff(Response response, string text);
29 DidStuff2(string text);
30 };
31
32 } // module sample
OLDNEW
« no previous file with comments | « mojo/public/bindings/tests/math_calculator.mojom ('k') | mojo/public/bindings/tests/sample_import.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698