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 ARC instance to the host. | 5 // Messages sent from the ARC instance to the host. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
8 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
9 | 12 |
10 #define IPC_MESSAGE_START ArcInstanceHostMsgStart | 13 #define IPC_MESSAGE_START ArcInstanceHostMsgStart |
11 | 14 |
12 IPC_MESSAGE_CONTROL0(ArcInstanceHostMsg_InstanceReady) | 15 IPC_MESSAGE_CONTROL0(ArcInstanceHostMsg_InstanceReady) |
| 16 |
| 17 // Sends a list of available ARC apps to Chrome. |labels|, |packages| and |
| 18 // |activities| must have the same size and contain non-empty strings. This |
| 19 // message is sent in response to ArcInstanceMsg_RefreshApps message from |
| 20 // Chrome to ARC and when ARC receives boot completed notification. |
| 21 IPC_MESSAGE_CONTROL3(ArcInstanceHostMsg_AppsRefreshed, |
| 22 std::vector<std::string>, /* labels */ |
| 23 std::vector<std::string>, /* packages */ |
| 24 std::vector<std::string> /* activities */) |
| 25 |
| 26 // Sends an icon of required |scale_factor| for specific ARC app. The app is |
| 27 // defined by |package| and |activity|. The icon content cannot be empty and |
| 28 // must match to |scale_factor| assuming 48x48 for SCALE_FACTOR_100P. |
| 29 // |scale_factor| is an enum defined at ui/base/layout.h. This message is sent |
| 30 // in response to ArcInstanceMsg_RequestIcon from Chrome to ARC. |
| 31 IPC_MESSAGE_CONTROL4(ArcInstanceHostMsg_AppIcon, |
| 32 std::string, /* package */ |
| 33 std::string, /* activity */ |
| 34 int, /* scale_factor */ |
| 35 std::vector<uint8_t> /* icon_png_data */) |
OLD | NEW |