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

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

Issue 66353002: Mojo: RemotePtr<S> + bindings changes for Peer attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix error in sample_service.h Created 7 years, 1 month 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 // HYPOTHETICAL IDL: 5 // HYPOTHETICAL IDL:
6 6
7 module sample { 7 module sample {
8 8
9 struct Bar { 9 struct Bar {
10 uint8 alpha @0; 10 uint8 alpha @0;
11 uint8 beta @1; 11 uint8 beta @1;
12 uint8 gamma @2; 12 uint8 gamma @2;
13 }; 13 };
14 14
15 [RequiredFields=7] 15 [RequiredFields=7]
16 struct Foo { 16 struct Foo {
17 string name @8; 17 string name @8;
18 int32 x @0; 18 int32 x @0;
19 int32 y @1; 19 int32 y @1;
20 bool a @2; 20 bool a @2;
21 bool b @3; 21 bool b @3;
22 bool c @4; 22 bool c @4;
23 Bar bar @5; 23 Bar bar @5;
24 Bar[] extra_bars @7; 24 Bar[] extra_bars @7;
25 uint8[] data @6; 25 uint8[] data @6;
26 handle[] files @9; 26 handle[] files @9;
27 }; 27 };
28 28
29 [Peer=ServiceClient]
29 interface Service { 30 interface Service {
30 void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0; 31 void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0;
31 }; 32 };
32 33
34 [Peer=Service]
35 interface ServiceClient {
36 void DidFrobinate(int32 result @0) @0;
37 };
38
33 } 39 }
OLDNEW
« no previous file with comments | « mojo/public/bindings/sample/generated/sample_service.cc ('k') | mojo/public/bindings/sample/sample_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698