Implement Document.createTouch

This commit is contained in:
Matt Brubeck 2015-10-22 09:19:29 -07:00
parent 817eed22d1
commit 316802e206
6 changed files with 73 additions and 11 deletions

View file

@ -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);
};

View file

@ -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;