Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Represents an input device (or group of related devices). | |
| 6 // To ease implementation, developers cannot rely on comparing | |
| 7 // two InputDevice instances for equality. We only have two InputDevice | |
| 8 // instances right now: | |
|
tdresser
2015/05/28 18:18:17
nit: the line wrapping is a bit weird here.
| |
| 9 // one represents all the devices which send touch events, the other one covers | |
| 10 // all other devices which do not send touch events, because currently all we | |
| 11 // care about is if the input device fires touch events or not. | |
| 12 [ | |
| 13 Constructor(optional InputDeviceInit deviceInitDict), | |
| 14 RuntimeEnabled=InputDevice, | |
| 15 ] interface InputDevice { | |
| 16 | |
| 17 // Whether this device dispatches touch events for movement. This is used t o detect | |
| 18 // mouse events which represent only an action that has already been handled by | |
| 19 // touch event handlers. | |
| 20 readonly attribute boolean firesTouchEvents; | |
| 21 }; | |
| OLD | NEW |