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

Side by Side Diff: components/arc/common/arc_instance_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: Renaming and nits 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 host to the ARC instance. 5 // Messages sent from the host to the ARC instance.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string>
11
10 #include "base/file_descriptor_posix.h" 12 #include "base/file_descriptor_posix.h"
11 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
12 14
13 #include "components/arc/common/arc_message_types.h" 15 #include "components/arc/common/arc_message_types.h"
14 16
15 #define IPC_MESSAGE_START ArcInstanceMsgStart 17 #define IPC_MESSAGE_START ArcInstanceMsgStart
16 18
17 // Registers a virtual input device on the container side. 19 // Registers a virtual input device on the container side.
18 // |name| is the device name, like "Chrome OS Keyboard". 20 // |name| is the device name, like "Chrome OS Keyboard".
19 // |device_type| is the device type, like "keyboard". 21 // |device_type| is the device type, like "keyboard".
20 // The virtual device will be reading 'struct input_event's from |fd|. The 22 // The virtual device will be reading 'struct input_event's from |fd|. The
21 // ownership of |fd| will be transferred to the receiver, so the sender must 23 // ownership of |fd| will be transferred to the receiver, so the sender must
22 // not close it. 24 // not close it.
23 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, 25 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice,
24 std::string, /* name */ 26 std::string, /* name */
25 std::string, /* device_type */ 27 std::string, /* device_type */
26 base::FileDescriptor /* fd */) 28 base::FileDescriptor /* fd */)
29
30 // Sends a request to ARC to refresh a list of ARC apps.
31 // ArcInstanceMsg_RefreshApps is expected in response to this message. However,
32 // response may not be sent if ARC is not ready yet (boot completed event is
33 // not received).
34 IPC_MESSAGE_CONTROL0(ArcInstanceMsg_RefreshApps)
35
36 // Sends a request to ARC to launch an ARC app defined by |package| and
37 // |activity|, which cannot be empty.
38 IPC_MESSAGE_CONTROL2(ArcInstanceMsg_LaunchApp,
39 std::string, /* package */
40 std::string /* activity */)
41
42 // Sends a request to ARC for the ARC app icon of a required scale factor.
43 // Scale factor is an enum defined at ui/base/layout.h. App is defined by
44 // package and activity, which cannot be empty.
45 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RequestAppIcon,
46 std::string, /* package */
47 std::string, /* activity */
48 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698