зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1583691 [wpt PR 19279] - Update interfaces/touch-events.idl, a=testonly
Automatic update from web-platform-tests Update interfaces/touch-events.idl (#19279) Source: https://github.com/tidoust/reffy-reports/blob/1c5a999/ed/idl/touch-events.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/588932563 -- wpt-commits: 1a93e6f80f62c8f758b10cdd21d5ebe149dd64a3 wpt-pr: 19279
This commit is contained in:
Родитель
7c09833785
Коммит
f9c7a2c6d8
|
@ -9,46 +9,47 @@ enum TouchType {
|
|||
};
|
||||
|
||||
dictionary TouchInit {
|
||||
required long identifier;
|
||||
required long identifier;
|
||||
required EventTarget target;
|
||||
double clientX = 0;
|
||||
double clientY = 0;
|
||||
double screenX = 0;
|
||||
double screenY = 0;
|
||||
double pageX = 0;
|
||||
double pageY = 0;
|
||||
float radiusX = 0;
|
||||
float radiusY = 0;
|
||||
float rotationAngle = 0;
|
||||
float force = 0;
|
||||
double altitudeAngle = 0;
|
||||
double azimuthAngle = 0;
|
||||
TouchType touchType = "direct";
|
||||
double clientX = 0;
|
||||
double clientY = 0;
|
||||
double screenX = 0;
|
||||
double screenY = 0;
|
||||
double pageX = 0;
|
||||
double pageY = 0;
|
||||
float radiusX = 0;
|
||||
float radiusY = 0;
|
||||
float rotationAngle = 0;
|
||||
float force = 0;
|
||||
double altitudeAngle = 0;
|
||||
double azimuthAngle = 0;
|
||||
TouchType touchType = "direct";
|
||||
};
|
||||
|
||||
[Constructor(TouchInit touchInitDict), Exposed=Window]
|
||||
[Exposed=Window]
|
||||
interface Touch {
|
||||
readonly attribute long identifier;
|
||||
constructor(TouchInit touchInitDict);
|
||||
readonly attribute long identifier;
|
||||
readonly attribute EventTarget target;
|
||||
readonly attribute double screenX;
|
||||
readonly attribute double screenY;
|
||||
readonly attribute double clientX;
|
||||
readonly attribute double clientY;
|
||||
readonly attribute double pageX;
|
||||
readonly attribute double pageY;
|
||||
readonly attribute float radiusX;
|
||||
readonly attribute float radiusY;
|
||||
readonly attribute float rotationAngle;
|
||||
readonly attribute float force;
|
||||
readonly attribute float altitudeAngle;
|
||||
readonly attribute float azimuthAngle;
|
||||
readonly attribute TouchType touchType;
|
||||
readonly attribute double screenX;
|
||||
readonly attribute double screenY;
|
||||
readonly attribute double clientX;
|
||||
readonly attribute double clientY;
|
||||
readonly attribute double pageX;
|
||||
readonly attribute double pageY;
|
||||
readonly attribute float radiusX;
|
||||
readonly attribute float radiusY;
|
||||
readonly attribute float rotationAngle;
|
||||
readonly attribute float force;
|
||||
readonly attribute float altitudeAngle;
|
||||
readonly attribute float azimuthAngle;
|
||||
readonly attribute TouchType touchType;
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface TouchList {
|
||||
readonly attribute unsigned long length;
|
||||
getter Touch? item(unsigned long index);
|
||||
getter Touch? item (unsigned long index);
|
||||
};
|
||||
|
||||
dictionary TouchEventInit : EventModifierInit {
|
||||
|
@ -57,8 +58,9 @@ dictionary TouchEventInit : EventModifierInit {
|
|||
sequence<Touch> changedTouches = [];
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional TouchEventInit eventInitDict = {}), Exposed=Window]
|
||||
[Exposed=Window]
|
||||
interface TouchEvent : UIEvent {
|
||||
constructor(DOMString type, optional TouchEventInit eventInitDict = {});
|
||||
readonly attribute TouchList touches;
|
||||
readonly attribute TouchList targetTouches;
|
||||
readonly attribute TouchList changedTouches;
|
||||
|
|
Загрузка…
Ссылка в новой задаче