| OLD | NEW |
| 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> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/file_descriptor_posix.h" | 12 #include "base/file_descriptor_posix.h" |
| 13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 14 | 14 |
| 15 #include "components/arc/common/arc_message_types.h" | 15 // Using relative paths since this file is shared between chromium and android. |
| 16 #include "arc_message_types.h" |
| 17 #include "arc_notification_types.h" |
| 16 | 18 |
| 17 #define IPC_MESSAGE_START ArcInstanceMsgStart | 19 #define IPC_MESSAGE_START ArcInstanceMsgStart |
| 18 | 20 |
| 19 // Registers a virtual input device on the container side. | 21 // Registers a virtual input device on the container side. |
| 20 // |name| is the device name, like "Chrome OS Keyboard". | 22 // |name| is the device name, like "Chrome OS Keyboard". |
| 21 // |device_type| is the device type, like "keyboard". | 23 // |device_type| is the device type, like "keyboard". |
| 22 // The virtual device will be reading 'struct input_event's from |fd|. The | 24 // The virtual device will be reading 'struct input_event's from |fd|. The |
| 23 // ownership of |fd| will be transferred to the receiver, so the sender must | 25 // ownership of |fd| will be transferred to the receiver, so the sender must |
| 24 // not close it. | 26 // not close it. |
| 25 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, | 27 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 39 std::string, /* package */ | 41 std::string, /* package */ |
| 40 std::string /* activity */) | 42 std::string /* activity */) |
| 41 | 43 |
| 42 // Sends a request to ARC for the ARC app icon of a required scale factor. | 44 // 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 | 45 // Scale factor is an enum defined at ui/base/layout.h. App is defined by |
| 44 // package and activity, which cannot be empty. | 46 // package and activity, which cannot be empty. |
| 45 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RequestAppIcon, | 47 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RequestAppIcon, |
| 46 std::string, /* package */ | 48 std::string, /* package */ |
| 47 std::string, /* activity */ | 49 std::string, /* activity */ |
| 48 arc::ScaleFactor /* scale factor */) | 50 arc::ScaleFactor /* scale factor */) |
| 51 |
| 52 // Sends an event from Chrome notification UI to Android. |
| 53 // |event| is a type of occured event. |
| 54 IPC_MESSAGE_CONTROL2(ArcInstanceMsg_SendNotificationEventToAndroid, |
| 55 std::string /* key */, |
| 56 arc::ArcNotificationEvent /* event */); |
| OLD | NEW |