OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Represents capabilities for a group of related input devices. | 5 // Represents capabilities for a group of related input devices. |
6 // To ease implementation, developers cannot rely on comparing two | 6 // To ease implementation, developers cannot rely on comparing two |
7 // InputDeviceCapabilities instances for equality. Now we only have two | 7 // InputDeviceCapabilities instances for equality. Now we only have two |
8 // InputDeviceCapabilities instances: one for devices which send touch | 8 // InputDeviceCapabilities instances: one for devices which send touch |
9 // events, and one for those that don't, because currently all we care | 9 // events, and one for those that don't, because currently all we care |
10 // about is if the input device fires touch events or not. | 10 // about is if the input device fires touch events or not. |
11 | 11 |
12 [ | 12 [ |
13 Constructor(optional InputDeviceCapabilitiesInit deviceInitDict), | 13 Constructor(optional InputDeviceCapabilitiesInit deviceInitDict), |
14 RuntimeEnabled=InputDeviceCapabilities, | 14 RuntimeEnabled=InputDeviceCapabilities, |
15 GarbageCollected, | |
16 ] interface InputDeviceCapabilities { | 15 ] interface InputDeviceCapabilities { |
17 | 16 |
18 // Whether this device dispatches touch events for movement. This is used t
o detect | 17 // 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 | 18 // mouse events which represent only an action that has already been handled
by |
20 // touch event handlers. | 19 // touch event handlers. |
21 [Measure] readonly attribute boolean firesTouchEvents; | 20 [Measure] readonly attribute boolean firesTouchEvents; |
22 }; | 21 }; |
OLD | NEW |