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

Unified Diff: chromeos/arc/bridge/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: revert wrongly update chrome/chrome_browser_ui.gypi 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: chromeos/arc/bridge/common/arc_instance_messages.h
diff --git a/chromeos/arc/bridge/common/arc_instance_messages.h b/chromeos/arc/bridge/common/arc_instance_messages.h
index 607718d12842306f1cdc1f27b0b3cd95471719ce..a9a3c0146e589d47f46544dc1d2fd742a7303c93 100644
--- a/chromeos/arc/bridge/common/arc_instance_messages.h
+++ b/chromeos/arc/bridge/common/arc_instance_messages.h
@@ -2,14 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Messages sent from the ARC instance to the host
+// Messages sent from the host to the ARC instance.
// Multiply-included message file, hence no include guard.
#include <stdint.h>
+#include <string>
+
#include "base/file_descriptor_posix.h"
+#include "chromeos/chromeos_export.h"
#include "ipc/ipc_message_macros.h"
+// Export IPC messages.
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT CHROMEOS_EXPORT
+
#define IPC_MESSAGE_START ArcInstanceMsgStart
// Registers a virtual input device on the container side.
@@ -22,3 +29,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.
+// 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