Index: ui/events/devices/mojo/input_devices.mojom |
diff --git a/ui/events/devices/mojo/input_devices.mojom b/ui/events/devices/mojo/input_devices.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ffb5dd73ba00df54554948ded18de8f8197e5779 |
--- /dev/null |
+++ b/ui/events/devices/mojo/input_devices.mojom |
@@ -0,0 +1,33 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module ui.mojom; |
+ |
+import "ui/gfx/geometry/mojo/geometry.mojom"; |
+ |
+// Corresponds to ui::InputDeviceType |
+enum InputDeviceType { |
+ INPUT_DEVICE_INTERNAL, |
+ INPUT_DEVICE_EXTERNAL, |
+ INPUT_DEVICE_UNKNOWN, |
+}; |
+ |
+// Corresponds to ui::InputDevice. |
+struct InputDevice { |
+ int32 id; |
+ InputDeviceType type; |
+ string name; |
+ string sys_path; |
+ uint16 vendor_id; |
+ uint16 product_id; |
+}; |
+ |
+// Corresponds to ui::TouchscreenDevice. |
+struct TouchscreenDevice { |
+ // Base class. |
+ InputDevice input_device; |
+ |
+ gfx.mojom.Size size; |
+ int32 touch_points; |
+}; |