Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
|
Rick Byers
2015/05/28 00:21:57
as discussed offline, maybe this is a good time to
tdresser
2015/05/28 15:03:21
+1
lanwei
2015/05/28 18:14:42
I will create a new fold in another CL, and move I
| |
| 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 -- now we do not | |
| 6 // distinguish each different input device. We only have two devices right now, | |
| 7 // one represents all the devices which send touch events, the other one covers | |
| 8 // all other devices which do not send touch events, because now all we care | |
| 9 // about is if the input device fires touch events or not). | |
| 10 // To ease implementation, developers cannot rely on comparing two InputDevice | |
|
tdresser
2015/05/28 15:03:21
I'd move the "To ease implementation..." section a
lanwei
2015/05/28 18:14:43
Done.
| |
| 11 // instances for equality. Eg. two mice with the same properties in a system ma y | |
| 12 // appear as a single InputDevice instance. | |
| 13 [ | |
| 14 Constructor(optional InputDeviceInit deviceInitDict), | |
| 15 RuntimeEnabled=InputDevice, | |
| 16 ] interface InputDevice { | |
| 17 | |
| 18 // Whether this device dispatches touch events for movement. This is used t o detect | |
| 19 // mouse events which represent only an action that has already been handled by | |
| 20 // touch event handlers. | |
| 21 readonly attribute boolean firesTouchEvents; | |
| 22 }; | |
| OLD | NEW |