OLD | NEW |
1 | 1 |
2 // Copyright 2013 The Chromium Authors. All rights reserved. | 2 // Copyright 2013 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] | 6 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] |
7 module sample; | 7 module sample; |
8 | 8 |
9 import "sample_import.mojom"; | 9 import "sample_import.mojom"; |
10 import "sample_import2.mojom"; | 10 import "sample_import2.mojom"; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 }; | 96 }; |
97 | 97 |
98 interface Service { | 98 interface Service { |
99 enum BazOptions { | 99 enum BazOptions { |
100 REGULAR = 0, | 100 REGULAR = 0, |
101 EXTRA | 101 EXTRA |
102 }; | 102 }; |
103 const uint8 kFavoriteBaz = 1; | 103 const uint8 kFavoriteBaz = 1; |
104 Frobinate@0(Foo? foo@0, BazOptions baz@1, Port? port@2) => (int32 result@0); | 104 Frobinate@0(Foo? foo@0, BazOptions baz@1, Port? port@2) => (int32 result@0); |
105 GetPort@1(Port& port @0); | 105 GetPort@1(Port& port @0); |
| 106 EatCallback() => (bool result); |
106 }; | 107 }; |
107 | 108 |
108 // This interface is referenced above where it is defined. It also refers to | 109 // This interface is referenced above where it is defined. It also refers to |
109 // itself from a method. | 110 // itself from a method. |
110 interface Port { | 111 interface Port { |
111 PostMessageToPort@0(string message_text@0, Port port@1); | 112 PostMessageToPort@0(string message_text@0, Port port@1); |
112 }; | 113 }; |
OLD | NEW |