| Index: Source/core/input/InputDevice.idl
|
| diff --git a/Source/core/input/InputDevice.idl b/Source/core/input/InputDevice.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dfd1033b8ebe6d78f60eff47de03125c011c48ee
|
| --- /dev/null
|
| +++ b/Source/core/input/InputDevice.idl
|
| @@ -0,0 +1,20 @@
|
| +// 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. Now we only have two InputDevice instances: 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;
|
| +};
|
|
|