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

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

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 import "sample_import.mojom" 5 import "sample_import.mojom"
6 import "sample_import2.mojom" 6 import "sample_import2.mojom"
7 7
8 [JavaPackage="org.chromium.mojo.bindings.test"] 8 [JavaPackage="org.chromium.mojo.bindings.test"]
9 module sample { 9 module sample {
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 struct DefaultsTest { 47 struct DefaultsTest {
48 sample.DefaultsTestInner[] people = [{32, ["Bob", "Bobby"]}] @1; 48 sample.DefaultsTestInner[] people = [{32, ["Bob", "Bobby"]}] @1;
49 uint8[] data = [1, 2, 3] @2; 49 uint8[] data = [1, 2, 3] @2;
50 imported.Point point = {7, 15} @3; 50 imported.Point point = {7, 15} @3;
51 int32[] shape_masks = [1 << imported.SHAPE_RECTANGLE] @4; 51 int32[] shape_masks = [1 << imported.SHAPE_RECTANGLE] @4;
52 imported.Thing thing = {imported.SHAPE_CIRCLE, imported.COLOR_BLACK}; 52 imported.Thing thing = {imported.SHAPE_CIRCLE, imported.COLOR_BLACK};
53 Bar.Type bar_type = Bar.TYPE_BOTH; 53 Bar.Type bar_type = Bar.TYPE_BOTH;
54 }; 54 };
55 55
56 [Peer=ServiceClient] 56 [Client=ServiceClient]
57 interface Service { 57 interface Service {
58 enum BazOptions { 58 enum BazOptions {
59 BAZ_REGULAR = 0, 59 BAZ_REGULAR = 0,
60 BAZ_EXTRA 60 BAZ_EXTRA
61 }; 61 };
62 Frobinate@0(Foo foo @0, BazOptions baz @1, Port port @2); 62 Frobinate@0(Foo foo @0, BazOptions baz @1, Port port @2);
63 }; 63 };
64 64
65 [Peer=Service]
66 interface ServiceClient { 65 interface ServiceClient {
67 DidFrobinate@0(int32 result @0); 66 DidFrobinate@0(int32 result @0);
68 }; 67 };
69 68
70 // This interface is referenced above where it is defined. It also refers to 69 // This interface is referenced above where it is defined. It also refers to
71 // itself from a method. 70 // itself from a method.
72 interface Port { 71 interface Port {
73 PostMessage@0(string message_text @0, Port[] extra_ports@1); 72 PostMessage@0(string message_text @0, Port port@1);
74 }; 73 };
75 74
76 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698