Event.idl 1.2 KB

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