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

Side by Side Diff: mojo/public/bindings/sample/sample_service.mojom

Issue 134823005: Mojo: re-organize public tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix common tests Created 6 years, 11 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 enum BarType {
8 BAR_VERTICAL = 1,
9 BAR_HORIZONTAL = 2,
10 BAR_INVALID
11 };
12
13 struct Bar {
14 uint8 alpha @0;
15 uint8 beta @1;
16 uint8 gamma @2;
17 int32 type @3;
18 };
19
20 [RequiredFields=7]
21 struct Foo {
22 string name @8;
23 int32 x @0;
24 int32 y @1;
25 bool a @2;
26 bool b @3;
27 bool c @4;
28 Bar bar @5;
29 Bar[] extra_bars @7;
30 uint8[] data @6;
31 handle<message_pipe> source @9;
32 handle<data_pipe_consumer>[] input_streams @10;
33 handle<data_pipe_producer>[] output_streams @11;
34 };
35
36 [Peer=ServiceClient]
37 interface Service {
38 enum BazOptions {
39 BAZ_REGULAR = 0,
40 BAZ_EXTRA
41 };
42 void Frobinate(Foo foo @0, int32 baz @1, handle<message_pipe> port @2) @0;
43 };
44
45 [Peer=Service]
46 interface ServiceClient {
47 void DidFrobinate(int32 result @0) @0;
48 };
49
50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698