Advertisement
Guest User

touchevent

a guest
Jan 4th, 2011
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. interface TouchEvent : UIEvent {
  2.     readonly attribute TouchList touches;
  3.     readonly attribute TouchList targetTouches;
  4.     readonly attribute TouchList changedTouches;
  5.  
  6.     void initTouchEvent(in DOMString type,
  7.                         in boolean canBubble,
  8.                         in boolean cancelable,
  9.                         in DOMWindow view,
  10.                         in long detail,
  11.                         in long screenX,
  12.                         in long screenY,
  13.                         in long clientX,
  14.                         in long clientY,
  15.                         in boolean ctrlKey,
  16.                         in boolean altKey,
  17.                         in boolean shiftKey,
  18.                         in boolean metaKey,
  19.                         in TouchList touches,
  20.                         in TouchList targetTouches,
  21.                         in TouchList changedTouches,
  22.                         in float scale,
  23.                         in float rotation);
  24. }
  25.  
  26. interface TouchList {
  27.     readonly attribute unsigned long length;
  28.  
  29.     Touch item(in unsigned long index);
  30. }
  31.  
  32. interface Touch {
  33.     readonly attribute long clientX;
  34.     readonly attribute long clientY;
  35.     readonly attribute unsigned long identifier;
  36.     readonly attribute long pageX;
  37.     readonly attribute long pageY;
  38.     readonly attribute long screenX;
  39.     readonly attribute long screenY;
  40.     readonly attribute EventTarget target;
  41.     readonly attribute float speedX;
  42.     readonly attribute float speedY;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement