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

Side by Side 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: Process xiyuan 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/file_descriptor_posix.h" 10 #include "base/file_descriptor_posix.h"
11 #include "chromeos/chromeos_export.h"
khmel1 2015/11/12 08:18:13 These changes(and below) come from recent 14128630
11 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
12 13
14 // Export IPC messages.
15 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CHROMEOS_EXPORT
17
13 #define IPC_MESSAGE_START ArcInstanceMsgStart 18 #define IPC_MESSAGE_START ArcInstanceMsgStart
14 19
15 // Registers a virtual input device on the container side. 20 // Registers a virtual input device on the container side.
16 // |name| is the device name, like "Chrome OS Keyboard". 21 // |name| is the device name, like "Chrome OS Keyboard".
17 // |device_type| is the device type, like "keyboard". 22 // |device_type| is the device type, like "keyboard".
18 // The virtual device will be reading 'struct input_event's from |fd|. The 23 // The virtual device will be reading 'struct input_event's from |fd|. The
19 // ownership of |fd| will be transferred to the receiver, so the sender must 24 // ownership of |fd| will be transferred to the receiver, so the sender must
20 // not close it. 25 // not close it.
21 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, 26 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice,
22 std::string, /* name */ 27 std::string, /* name */
23 std::string, /* device_type */ 28 std::string, /* device_type */
24 base::FileDescriptor /* fd */) 29 base::FileDescriptor /* fd */)
30
31 // Request to app launcher to refresh a list of available apps.
32 IPC_MESSAGE_CONTROL0(ArcInstanceMsg_RefreshApps)
33
34 // Request to app launcher to start an activity.
35 IPC_MESSAGE_CONTROL2(ArcInstanceMsg_LaunchApp,
36 std::string, /* package */
37 std::string /* activity */)
38
39 // Request to app launcher to send an app icon of a required scale factor.
40 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RequestIcon,
41 std::string, /* package */
42 std::string, /* activity */
43 int /* scale factor */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698