OLD | NEW |
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 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] | 5 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] |
6 module sample; | 6 module sample; |
7 | 7 |
8 import "sample_import.mojom"; | 8 import "sample_import.mojom"; |
9 | 9 |
10 // This sample shows how handles to MessagePipes can be sent as both parameters | 10 // This sample shows how handles to MessagePipes can be sent as both parameters |
(...skipping 21 matching lines...) Expand all Loading... |
32 interface Factory { | 32 interface Factory { |
33 DoStuff(Request request, handle<message_pipe>? pipe) => | 33 DoStuff(Request request, handle<message_pipe>? pipe) => |
34 (Response response, string text); | 34 (Response response, string text); |
35 DoStuff2(handle<data_pipe_consumer> pipe) => (string text); | 35 DoStuff2(handle<data_pipe_consumer> pipe) => (string text); |
36 CreateNamedObject(NamedObject& obj); | 36 CreateNamedObject(NamedObject& obj); |
37 RequestImportedInterface( | 37 RequestImportedInterface( |
38 imported.ImportedInterface& obj) => (imported.ImportedInterface& obj); | 38 imported.ImportedInterface& obj) => (imported.ImportedInterface& obj); |
39 TakeImportedInterface( | 39 TakeImportedInterface( |
40 imported.ImportedInterface obj) => (imported.ImportedInterface obj); | 40 imported.ImportedInterface obj) => (imported.ImportedInterface obj); |
41 }; | 41 }; |
OLD | NEW |