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 module arc; | 5 module arc.mojom; |
6 | 6 |
7 interface InputInstance { | 7 interface InputInstance { |
8 // Registers a virtual input device on the container side. | 8 // Registers a virtual input device on the container side. |
9 // |name| is the device name, like "Chrome OS Keyboard". | 9 // |name| is the device name, like "Chrome OS Keyboard". |
10 // |device_type| is the device type, like "keyboard". | 10 // |device_type| is the device type, like "keyboard". |
11 // The virtual device will be reading 'struct input_event's from |fd|. The | 11 // The virtual device will be reading 'struct input_event's from |fd|. The |
12 // ownership of |fd| will be transferred to the receiver, so the sender must | 12 // ownership of |fd| will be transferred to the receiver, so the sender must |
13 // not close it. | 13 // not close it. |
14 RegisterInputDevice(string name, | 14 RegisterInputDevice(string name, |
15 string device_type, | 15 string device_type, |
16 handle fd); | 16 handle fd); |
17 }; | 17 }; |
OLD | NEW |