summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/events/pointer_event.idl
blob: 1f39eec4f0fe9b69cfaf8936ae5cea7df38ece96 (plain)
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
// 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.

// https://w3c.github.io/pointerevents/#pointerevent-interface

[
    Constructor(DOMString type, optional PointerEventInit eventInitDict),
    Exposed=Window
] interface PointerEvent : MouseEvent {
    [MeasureAs=PointerEventAttributeCount]   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 float     tangentialPressure;
    [MeasureAs=PointerEventAttributeCount]   readonly    attribute long      twist;
    [MeasureAs=PointerEventAttributeCount]   readonly    attribute DOMString pointerType;
    [MeasureAs=PointerEventAttributeCount]   readonly    attribute boolean   isPrimary;

    // https://w3c.github.io/pointerevents/extension.html#extensions-to-the-pointerevent-interface
    sequence<PointerEvent> getCoalescedEvents();
    [RuntimeEnabled=PredictedEvents, Measure] sequence<PointerEvent> getPredictedEvents();
};