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

Side by Side Diff: components/arc/common/arc_host_messages.h

Issue 1475563002: arc-bridge: Implement IPC message for app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use creator for ArcBridgeService Created 5 years 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 unified diff | Download patch
OLDNEW
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 #include "components/arc/common/arc_message_types.h" 13 #include "components/arc/common/arc_message_types.h"
11 14
12 #define IPC_MESSAGE_START ArcInstanceHostMsgStart 15 #define IPC_MESSAGE_START ArcInstanceHostMsgStart
13 16
14 IPC_ENUM_TRAITS_MAX_VALUE(arc::InstanceBootPhase, arc::InstanceBootPhase::LAST) 17 IPC_ENUM_TRAITS_MAX_VALUE(arc::InstanceBootPhase, arc::InstanceBootPhase::LAST)
15 18
16 IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_InstanceBootPhase, 19 IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_InstanceBootPhase,
17 arc::InstanceBootPhase) 20 arc::InstanceBootPhase)
21
22 // Sends a list of available ARC apps to Chrome. |labels|, |packages| and
23 // |activities| must have the same size and contain non-empty strings. This
24 // message is sent in response to ArcInstanceMsg_RefreshApps message from
25 // Chrome to ARC and when ARC receives boot completed notification.
26 IPC_MESSAGE_CONTROL3(ArcInstanceHostMsg_AppsRefreshed,
27 std::vector<std::string>, /* labels */
28 std::vector<std::string>, /* packages */
29 std::vector<std::string> /* activities */)
30
31 // Sends an icon of required |scale_factor| for specific ARC app. The app is
32 // defined by |package| and |activity|. The icon content cannot be empty and
33 // must match to |scale_factor| assuming 48x48 for SCALE_FACTOR_100P.
34 // |scale_factor| is an enum defined at ui/base/layout.h. This message is sent
35 // in response to ArcInstanceMsg_RequestIcon from Chrome to ARC.
36 IPC_MESSAGE_CONTROL4(ArcInstanceHostMsg_AppIcon,
37 std::string, /* package */
38 std::string, /* activity */
39 int, /* scale_factor */
hidehiko 2015/11/25 07:47:37 nit: spacing.
khmel1 2015/11/25 15:28:31 Done.
40 std::vector<uint8_t> /* icon_png_data */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698