OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module ui.mojom; |
| 6 |
| 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 8 |
| 9 // Corresponds to ui::InputDeviceType |
| 10 enum InputDeviceType { |
| 11 INPUT_DEVICE_INTERNAL, |
| 12 INPUT_DEVICE_EXTERNAL, |
| 13 INPUT_DEVICE_UNKNOWN, |
| 14 }; |
| 15 |
| 16 // Corresponds to ui::InputDevice. |
| 17 struct InputDevice { |
| 18 int32 id; |
| 19 InputDeviceType type; |
| 20 string name; |
| 21 string sys_path; |
| 22 uint16 vendor_id; |
| 23 uint16 product_id; |
| 24 }; |
| 25 |
| 26 // Corresponds to ui::TouchscreenDevice. |
| 27 struct TouchscreenDevice { |
| 28 // Base class. |
| 29 InputDevice input_device; |
| 30 |
| 31 gfx.mojom.Size size; |
| 32 int32 touch_points; |
| 33 }; |
OLD | NEW |