Index: Source/core/events/InputDevice.idl |
diff --git a/Source/core/events/InputDevice.idl b/Source/core/events/InputDevice.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d371643e9a26644d596736279424388beef7dbb3 |
--- /dev/null |
+++ b/Source/core/events/InputDevice.idl |
@@ -0,0 +1,17 @@ |
+// Copyright 2015 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. |
+ |
+// Represents an input device (or group of related devices). |
tdresser
2015/05/27 12:38:47
Can we expand on what we mean by "related"? Is our
lanwei
2015/05/28 14:56:18
Done.
|
+// To ease implementation, developers cannot rely on comparing two InputDevice |
+// instances for equality. Eg. two mice with the same properties in a system may |
+// appear as a single InputDevice instance. |
+[ |
+ Constructor(optional InputDeviceInit deviceInitDict) |
+] interface InputDevice { |
+ |
+ // Whether this device dispatches touch events for movement. This is used to detect |
+ // mouse events which represent only an action that has already been handled by |
+ // touch event handlers. |
+ readonly attribute boolean firesTouchEvents; |
+}; |