Event.idl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #import <DOM/EventTarget.idl>
  2. interface Event {
  3. constructor(DOMString type, optional EventInit eventInitDict = {});
  4. readonly attribute DOMString type;
  5. readonly attribute EventTarget? target;
  6. readonly attribute EventTarget? srcTarget;
  7. readonly attribute EventTarget? currentTarget;
  8. sequence<EventTarget> composedPath();
  9. const unsigned short NONE = 0;
  10. const unsigned short CAPTURING_PHASE = 1;
  11. const unsigned short AT_TARGET = 2;
  12. const unsigned short BUBBLING_PHASE = 3;
  13. readonly attribute unsigned short eventPhase;
  14. undefined stopPropagation();
  15. attribute boolean cancelBubble;
  16. undefined stopImmediatePropagation();
  17. readonly attribute boolean bubbles;
  18. readonly attribute boolean cancelable;
  19. attribute boolean returnValue;
  20. undefined preventDefault();
  21. readonly attribute boolean defaultPrevented;
  22. readonly attribute boolean composed;
  23. readonly attribute boolean isTrusted;
  24. readonly attribute double timeStamp;
  25. undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
  26. };
  27. dictionary EventInit {
  28. boolean bubbles = false;
  29. boolean cancelable = false;
  30. boolean composed = false;
  31. };