OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module mojo.shell.test.mojom; | 5 module shell.test.mojom; |
6 | 6 |
7 import "services/shell/public/interfaces/connector.mojom"; | 7 import "services/shell/public/interfaces/connector.mojom"; |
8 | 8 |
9 interface ConnectTestService { | 9 interface ConnectTestService { |
10 GetTitle() => (string title); | 10 GetTitle() => (string title); |
11 GetInstance() => (string instance); | 11 GetInstance() => (string instance); |
12 }; | 12 }; |
13 | 13 |
14 interface ClassInterface { | 14 interface ClassInterface { |
15 Ping() => (string response); | 15 Ping() => (string response); |
(...skipping 13 matching lines...) Expand all Loading... |
29 // defines as including ClassInterface. | 29 // defines as including ClassInterface. |
30 // The response contains the response from ClassInterface::Ping() and | 30 // The response contains the response from ClassInterface::Ping() and |
31 // ConnectTestService::GetTitle(). | 31 // ConnectTestService::GetTitle(). |
32 ConnectToClassInterface() => (string class_interface_response, string title); | 32 ConnectToClassInterface() => (string class_interface_response, string title); |
33 }; | 33 }; |
34 | 34 |
35 interface UserIdTest { | 35 interface UserIdTest { |
36 // Attempts to connect to mojo:connect_test_class_app as |user_id|. | 36 // Attempts to connect to mojo:connect_test_class_app as |user_id|. |
37 // The callback takes the connection response result, and the identity | 37 // The callback takes the connection response result, and the identity |
38 // mojo:connect_test_class_app was run as, which should match |user_id|. | 38 // mojo:connect_test_class_app was run as, which should match |user_id|. |
39 ConnectToClassAppAsDifferentUser(mojo.shell.mojom.Identity target) => | 39 ConnectToClassAppAsDifferentUser(shell.mojom.Identity target) => |
40 (int32 connection_result, mojo.shell.mojom.Identity target); | 40 (int32 connection_result, shell.mojom.Identity target); |
41 }; | 41 }; |
42 | 42 |
43 interface ClientProcessTest { | 43 interface ClientProcessTest { |
44 // Attempts to launch a bare exe and connect to it using the | 44 // Attempts to launch a bare exe and connect to it using the |
45 // ClientProcessConnection param to Connector::Connect(). The callback takes | 45 // ClientProcessConnection param to Connector::Connect(). The callback takes |
46 // the result of the connection, and the identity of the app that the caller | 46 // the result of the connection, and the identity of the app that the caller |
47 // can use to connect to this app as well. | 47 // can use to connect to this app as well. |
48 LaunchAndConnectToProcess() => | 48 LaunchAndConnectToProcess() => |
49 (int32 connection_result, mojo.shell.mojom.Identity target); | 49 (int32 connection_result, shell.mojom.Identity target); |
50 }; | 50 }; |
51 | 51 |
52 struct ConnectionState { | 52 struct ConnectionState { |
53 string connection_local_name; | 53 string connection_local_name; |
54 string connection_remote_name; | 54 string connection_remote_name; |
55 string connection_remote_userid; | 55 string connection_remote_userid; |
56 uint32 connection_remote_id; | 56 uint32 connection_remote_id; |
57 string initialize_local_name; | 57 string initialize_local_name; |
58 string initialize_userid; | 58 string initialize_userid; |
59 uint32 initialize_id; | 59 uint32 initialize_id; |
60 }; | 60 }; |
61 | 61 |
62 interface ExposedInterface { | 62 interface ExposedInterface { |
63 ConnectionAccepted(ConnectionState state); | 63 ConnectionAccepted(ConnectionState state); |
64 }; | 64 }; |
65 | 65 |
66 interface BlockedInterface { | 66 interface BlockedInterface { |
67 GetTitleBlocked() => (string blocked_title); | 67 GetTitleBlocked() => (string blocked_title); |
68 }; | 68 }; |
OLD | NEW |