Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Unified Diff: ui/events/devices/mojo/input_devices.mojom

Issue 1992443002: Add Mojo IPC based input-device service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_ddm
Patch Set: Fixes for comments. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+};

Powered by Google App Engine
This is Rietveld 408576698