OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Messages sent from the host to the ARC instance. | 5 // Messages sent from the host to the ARC instance. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | |
11 | |
10 #include "base/file_descriptor_posix.h" | 12 #include "base/file_descriptor_posix.h" |
11 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
12 | 14 |
13 #define IPC_MESSAGE_START ArcInstanceMsgStart | 15 #define IPC_MESSAGE_START ArcInstanceMsgStart |
14 | 16 |
15 // Registers a virtual input device on the container side. | 17 // Registers a virtual input device on the container side. |
16 // |name| is the device name, like "Chrome OS Keyboard". | 18 // |name| is the device name, like "Chrome OS Keyboard". |
17 // |device_type| is the device type, like "keyboard". | 19 // |device_type| is the device type, like "keyboard". |
18 // The virtual device will be reading 'struct input_event's from |fd|. The | 20 // The virtual device will be reading 'struct input_event's from |fd|. The |
19 // ownership of |fd| will be transferred to the receiver, so the sender must | 21 // ownership of |fd| will be transferred to the receiver, so the sender must |
20 // not close it. | 22 // not close it. |
21 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, | 23 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, |
22 std::string, /* name */ | 24 std::string, /* name */ |
23 std::string, /* device_type */ | 25 std::string, /* device_type */ |
24 base::FileDescriptor /* fd */) | 26 base::FileDescriptor /* fd */) |
27 | |
28 // Sends a request to ARC to refresh list of ARC apps. | |
29 // ArcInstanceMsg_RefreshApps is expected in response to this message. However, | |
30 // response may not be sent if ARC is not ready yet (boot completed event is | |
31 // not received). | |
32 IPC_MESSAGE_CONTROL0(ArcInstanceMsg_RefreshApps) | |
33 | |
34 // Sends a request to ARC to launch an ARC app defined by |package| and | |
35 // |activity|, which cannot be empty. | |
36 IPC_MESSAGE_CONTROL2(ArcInstanceMsg_LaunchApp, | |
37 std::string, /* package */ | |
38 std::string /* activity */) | |
39 | |
40 // It sends a request to ARC for the ARC app icon of a required scale factor. | |
elijahtaylor (use chromium)
2015/11/19 05:52:00
nit: remove "It"?
khmel1
2015/11/19 17:11:41
Done.
| |
41 // Scale factor is an enum defined at ui/base/layout.h. App is defined by | |
42 // package and activity, which cannot be empty. | |
43 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RequestIcon, | |
44 std::string, /* package */ | |
45 std::string, /* activity */ | |
46 int /* scale factor */) | |
OLD | NEW |