OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ui.mojom; | 5 module ui.mojom; |
6 | 6 |
7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
8 | 8 |
9 // Corresponds to ui::InputDeviceType | 9 // Corresponds to ui::InputDeviceType |
10 enum InputDeviceType { | 10 enum InputDeviceType { |
11 INPUT_DEVICE_INTERNAL, | 11 INPUT_DEVICE_INTERNAL, |
12 INPUT_DEVICE_EXTERNAL, | 12 INPUT_DEVICE_EXTERNAL, |
13 INPUT_DEVICE_UNKNOWN, | 13 INPUT_DEVICE_UNKNOWN, |
14 }; | 14 }; |
15 | 15 |
16 // Corresponds to ui::InputDevice. | 16 // Corresponds to ui::InputDevice. |
17 struct InputDevice { | 17 struct InputDevice { |
18 int32 id; | 18 int32 id; |
19 InputDeviceType type; | 19 InputDeviceType type; |
20 string name; | 20 string name; |
| 21 bool enabled; |
21 string sys_path; | 22 string sys_path; |
22 uint16 vendor_id; | 23 uint16 vendor_id; |
23 uint16 product_id; | 24 uint16 product_id; |
24 }; | 25 }; |
25 | 26 |
26 // Corresponds to ui::StylusState. | 27 // Corresponds to ui::StylusState. |
27 enum StylusState { REMOVED, INSERTED }; | 28 enum StylusState { REMOVED, INSERTED }; |
28 | 29 |
29 // Corresponds to ui::TouchscreenDevice. | 30 // Corresponds to ui::TouchscreenDevice. |
30 struct TouchscreenDevice { | 31 struct TouchscreenDevice { |
31 // Base class. | 32 // Base class. |
32 InputDevice input_device; | 33 InputDevice input_device; |
33 | 34 |
34 gfx.mojom.Size size; | 35 gfx.mojom.Size size; |
35 int32 touch_points; | 36 int32 touch_points; |
36 }; | 37 }; |
OLD | NEW |