Chromium Code Reviews| Index: components/arc/common/arc_instance_messages.h |
| diff --git a/components/arc/common/arc_instance_messages.h b/components/arc/common/arc_instance_messages.h |
| index 948704697bc6ef6cbe6347b373e03bfb138742d0..f3cb232185cec49e3a2c5beeb115894606c3ef16 100644 |
| --- a/components/arc/common/arc_instance_messages.h |
| +++ b/components/arc/common/arc_instance_messages.h |
| @@ -7,6 +7,8 @@ |
| #include <stdint.h> |
| +#include <string> |
| + |
| #include "base/file_descriptor_posix.h" |
| #include "ipc/ipc_message_macros.h" |
| @@ -24,3 +26,23 @@ IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, |
| std::string, /* name */ |
| std::string, /* device_type */ |
| base::FileDescriptor /* fd */) |
| + |
| +// Sends a request to ARC to refresh a list of ARC apps. |
| +// ArcInstanceMsg_RefreshApps is expected in response to this message. However, |
| +// response may not be sent if ARC is not ready yet (boot completed event is |
| +// not received). |
| +IPC_MESSAGE_CONTROL0(ArcInstanceMsg_RefreshApps) |
| + |
| +// Sends a request to ARC to launch an ARC app defined by |package| and |
| +// |activity|, which cannot be empty. |
| +IPC_MESSAGE_CONTROL2(ArcInstanceMsg_LaunchApp, |
| + std::string, /* package */ |
| + std::string /* activity */) |
| + |
| +// Sends a request to ARC for the ARC app icon of a required scale factor. |
| +// Scale factor is an enum defined at ui/base/layout.h. App is defined by |
| +// package and activity, which cannot be empty. |
| +IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RequestAppIcon, |
| + std::string, /* package */ |
| + std::string, /* activity */ |
| + int /* scale factor */) |
|
Jorge Lucangeli Obes
2015/12/01 15:17:22
Same comment about scale_factor being negative or
khmel1
2015/12/01 15:46:29
The same as in previous comment
|