mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement Document.createTouch
This commit is contained in:
parent
817eed22d1
commit
316802e206
6 changed files with 73 additions and 11 deletions
|
@ -159,3 +159,16 @@ partial interface Document {
|
|||
// Tracking issue for document.all: https://github.com/servo/servo/issues/7396
|
||||
// readonly attribute HTMLAllCollection all;
|
||||
};
|
||||
|
||||
// http://w3c.github.io/touch-events/#idl-def-Document
|
||||
partial interface Document {
|
||||
Touch createTouch(Window/*Proxy*/ view,
|
||||
EventTarget target,
|
||||
long identifier,
|
||||
double pageX,
|
||||
double pageY,
|
||||
double screenX,
|
||||
double screenY);
|
||||
// FIXME (#8159):
|
||||
// TouchList createTouchList(Touch... touches);
|
||||
};
|
||||
|
|
|
@ -12,8 +12,8 @@ interface Touch {
|
|||
readonly attribute double screenY;
|
||||
readonly attribute double clientX;
|
||||
readonly attribute double clientY;
|
||||
// readonly attribute double pageX;
|
||||
// readonly attribute double pageY;
|
||||
readonly attribute double pageX;
|
||||
readonly attribute double pageY;
|
||||
// readonly attribute float radiusX;
|
||||
// readonly attribute float radiusY;
|
||||
// readonly attribute float rotationAngle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue