EventHandler.idl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #import <DOM/Event.idl>
  2. [LegacyTreatNonObjectAsNull]
  3. callback EventHandlerNonNull = any (Event event);
  4. typedef EventHandlerNonNull? EventHandler;
  5. [LegacyTreatNonObjectAsNull]
  6. callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source, optional unsigned long lineno, optional unsigned long colno, optional any error);
  7. typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
  8. [LegacyTreatNonObjectAsNull]
  9. callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
  10. typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
  11. // https://html.spec.whatwg.org/#globaleventhandlers
  12. interface mixin GlobalEventHandlers {
  13. attribute EventHandler onabort;
  14. attribute EventHandler onauxclick;
  15. // TODO: attribute EventHandler onbeforematch;
  16. attribute EventHandler onblur;
  17. attribute EventHandler oncancel;
  18. attribute EventHandler oncanplay;
  19. attribute EventHandler oncanplaythrough;
  20. attribute EventHandler onchange;
  21. attribute EventHandler onclick;
  22. attribute EventHandler onclose;
  23. // TODO: attribute EventHandler oncontextlost;
  24. attribute EventHandler oncontextmenu;
  25. // TODO: attribute EventHandler oncontextrestored;
  26. attribute EventHandler oncuechange;
  27. attribute EventHandler ondblclick;
  28. attribute EventHandler ondrag;
  29. attribute EventHandler ondragend;
  30. attribute EventHandler ondragenter;
  31. attribute EventHandler ondragleave;
  32. attribute EventHandler ondragover;
  33. attribute EventHandler ondragstart;
  34. attribute EventHandler ondrop;
  35. attribute EventHandler ondurationchange;
  36. attribute EventHandler onemptied;
  37. attribute EventHandler onended;
  38. attribute OnErrorEventHandler onerror;
  39. attribute EventHandler onfocus;
  40. attribute EventHandler onfocusin;
  41. attribute EventHandler onfocusout;
  42. attribute EventHandler onformdata;
  43. attribute EventHandler oninput;
  44. attribute EventHandler oninvalid;
  45. attribute EventHandler onkeydown;
  46. attribute EventHandler onkeypress;
  47. attribute EventHandler onkeyup;
  48. attribute EventHandler onload;
  49. attribute EventHandler onloadeddata;
  50. attribute EventHandler onloadedmetadata;
  51. attribute EventHandler onloadstart;
  52. attribute EventHandler onmousedown;
  53. [LegacyLenientThis] attribute EventHandler onmouseenter;
  54. [LegacyLenientThis] attribute EventHandler onmouseleave;
  55. attribute EventHandler onmousemove;
  56. attribute EventHandler onmouseout;
  57. attribute EventHandler onmouseover;
  58. attribute EventHandler onmouseup;
  59. attribute EventHandler onpause;
  60. attribute EventHandler onplay;
  61. attribute EventHandler onplaying;
  62. attribute EventHandler onprogress;
  63. attribute EventHandler onratechange;
  64. attribute EventHandler onreset;
  65. attribute EventHandler onresize;
  66. attribute EventHandler onscroll;
  67. attribute EventHandler onsecuritypolicyviolation;
  68. attribute EventHandler onseeked;
  69. attribute EventHandler onseeking;
  70. attribute EventHandler onselect;
  71. attribute EventHandler onselectionchange;
  72. attribute EventHandler onslotchange;
  73. attribute EventHandler onstalled;
  74. attribute EventHandler onsubmit;
  75. attribute EventHandler onsuspend;
  76. attribute EventHandler ontimeupdate;
  77. attribute EventHandler ontoggle;
  78. attribute EventHandler onvolumechange;
  79. attribute EventHandler onwaiting;
  80. attribute EventHandler onwebkitanimationend;
  81. attribute EventHandler onwebkitanimationiteration;
  82. attribute EventHandler onwebkitanimationstart;
  83. attribute EventHandler onwebkittransitionend;
  84. attribute EventHandler onwheel;
  85. };
  86. // https://html.spec.whatwg.org/#windoweventhandlers
  87. interface mixin WindowEventHandlers {
  88. attribute EventHandler onafterprint;
  89. attribute EventHandler onbeforeprint;
  90. attribute OnBeforeUnloadEventHandler onbeforeunload;
  91. attribute EventHandler onhashchange;
  92. attribute EventHandler onlanguagechange;
  93. attribute EventHandler onmessage;
  94. attribute EventHandler onmessageerror;
  95. attribute EventHandler onoffline;
  96. attribute EventHandler ononline;
  97. attribute EventHandler onpagehide;
  98. attribute EventHandler onpageshow;
  99. attribute EventHandler onpopstate;
  100. attribute EventHandler onrejectionhandled;
  101. attribute EventHandler onstorage;
  102. attribute EventHandler onunhandledrejection;
  103. attribute EventHandler onunload;
  104. };