Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2643)

Unified Diff: components/arc/common/arc_instance_messages.h

Issue 1413153007: arc-app-launcher: Minimal support for ARC app launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit comment addressed Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 a9972296a0032cdd979eeb94da7477d38bee580e..3012973c88adeb5f706539cdaa24d75d62dc3b55 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"
@@ -22,3 +24,23 @@ IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice,
std::string, /* name */
std::string, /* device_type */
base::FileDescriptor /* fd */)
+
+// Sends a request to ARC to refresh 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 */)
+
+// 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.
+// 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_RequestIcon,
+ std::string, /* package */
+ std::string, /* activity */
+ int /* scale factor */)

Powered by Google App Engine
This is Rietveld 408576698