-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
pointer_event.idl
28 lines (25 loc) · 1.72 KB
/
pointer_event.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/pointerevents/#pointerevent-interface
[
Exposed=Window
] interface PointerEvent : MouseEvent {
constructor(DOMString type, optional PointerEventInit eventInitDict = {});
[MeasureAs=PointerEventAttributeCount, ImplementedAs=pointerIdForBindings] readonly attribute long pointerId;
[MeasureAs=PointerEventAttributeCount] readonly attribute double width;
[MeasureAs=PointerEventAttributeCount] readonly attribute double height;
[MeasureAs=PointerEventAttributeCount] readonly attribute float pressure;
[MeasureAs=PointerEventAttributeCount] readonly attribute long tiltX;
[MeasureAs=PointerEventAttributeCount] readonly attribute long tiltY;
[MeasureAs=PointerEventAttributeCount] readonly attribute double azimuthAngle;
[MeasureAs=PointerEventAttributeCount] readonly attribute double altitudeAngle;
[MeasureAs=PointerEventAttributeCount] readonly attribute float tangentialPressure;
[MeasureAs=PointerEventAttributeCount] readonly attribute long twist;
[MeasureAs=PointerEventAttributeCount] readonly attribute DOMString pointerType;
[MeasureAs=PointerEventAttributeCount] readonly attribute boolean isPrimary;
[MeasureAs=PointerEventAttributeCount, RuntimeEnabled=PointerEventDeviceId] readonly attribute long deviceId;
// https://w3c.github.io/pointerevents/extension.html#extensions-to-the-pointerevent-interface
sequence<PointerEvent> getCoalescedEvents();
[Measure] sequence<PointerEvent> getPredictedEvents();
};