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

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

Issue 272323003: Mojo: Implement support for |Foo&| mojom syntax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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.sample"] 8 [JavaPackage="org.chromium.mojo.bindings.test.sample"]
9 module sample { 9 module sample {
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 }; 87 };
88 88
89 [Client=ServiceClient] 89 [Client=ServiceClient]
90 interface Service { 90 interface Service {
91 enum BazOptions { 91 enum BazOptions {
92 BAZ_REGULAR = 0, 92 BAZ_REGULAR = 0,
93 BAZ_EXTRA 93 BAZ_EXTRA
94 }; 94 };
95 const uint8 kFavoriteBaz = 1; 95 const uint8 kFavoriteBaz = 1;
96 Frobinate@0(Foo foo@0, BazOptions baz@1, Port port@2); 96 Frobinate@0(Foo foo@0, BazOptions baz@1, Port port@2);
97 GetPort@1(Port& port @0);
97 }; 98 };
98 99
99 interface ServiceClient { 100 interface ServiceClient {
100 DidFrobinate@0(int32 result@0); 101 DidFrobinate@0(int32 result@0);
101 }; 102 };
102 103
103 // This interface is referenced above where it is defined. It also refers to 104 // This interface is referenced above where it is defined. It also refers to
104 // itself from a method. 105 // itself from a method.
105 interface Port { 106 interface Port {
106 PostMessage@0(string message_text@0, Port port@1); 107 PostMessage@0(string message_text@0, Port port@1);
107 }; 108 };
108 109
109 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698