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

Unified Diff: Source/core/events/InputDevice.idl

Issue 1157173003: Impelement InputDevice.firesTouchEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unnecessary include Created 5 years, 7 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
« no previous file with comments | « Source/core/events/InputDevice.cpp ('k') | Source/core/events/InputDeviceInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f54d917411b8537975bdcf3f1b269356f04d7b90
--- /dev/null
+++ b/Source/core/events/InputDevice.idl
@@ -0,0 +1,21 @@
+// 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).
+// To ease implementation, developers cannot rely on comparing
+// two InputDevice instances for equality. We only have two InputDevice
+// instances right now:
tdresser 2015/05/28 18:18:17 nit: the line wrapping is a bit weird here.
+// one represents all the devices which send touch events, the other one covers
+// all other devices which do not send touch events, because currently all we
+// care about is if the input device fires touch events or not.
+[
+ Constructor(optional InputDeviceInit deviceInitDict),
+ RuntimeEnabled=InputDevice,
+] 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;
+};
« no previous file with comments | « Source/core/events/InputDevice.cpp ('k') | Source/core/events/InputDeviceInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698