Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Messages sent from the ARC instance to the host | |
| 6 // Multiply-included message file, hence no include guard. | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include "base/file_descriptor_posix.h" | |
| 11 #include "ipc/ipc_message_macros.h" | |
| 12 | |
| 13 #define IPC_MESSAGE_START ArcInstanceMsgStart | |
| 14 | |
| 15 // Registers a virtual input device on the container side. | |
| 16 // |name| is the device name, like "Chrome OS Keyboard". | |
| 17 // |device_type| is the device type, like "keyboard". | |
| 18 // 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 | |
| 20 // not close it. | |
| 21 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, | |
| 22 std::string, /* name */ | |
| 23 std::string, /* device_type */ | |
| 24 base::FileDescriptor /* fd */) | |
|
dcheng
2015/11/04 00:06:26
I know this is the only way to send FDs across IPC
lhc(google)
2015/11/04 03:00:28
Totally. Just let me know once that is landed and
Luis Héctor Chávez
2015/11/04 16:40:58
Rather, I want to land this as soon as possible si
dcheng
2015/11/05 01:11:30
That's fine.
| |
| OLD | NEW |