EventHandler.idl 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 onformdata;
  41. attribute EventHandler oninput;
  42. attribute EventHandler oninvalid;
  43. attribute EventHandler onkeydown;
  44. attribute EventHandler onkeypress;
  45. attribute EventHandler onkeyup;
  46. attribute EventHandler onload;
  47. attribute EventHandler onloadeddata;
  48. attribute EventHandler onloadedmetadata;
  49. attribute EventHandler onloadstart;
  50. attribute EventHandler onmousedown;
  51. [LegacyLenientThis] attribute EventHandler onmouseenter;
  52. [LegacyLenientThis] attribute EventHandler onmouseleave;
  53. attribute EventHandler onmousemove;
  54. attribute EventHandler onmouseout;
  55. attribute EventHandler onmouseover;
  56. attribute EventHandler onmouseup;
  57. attribute EventHandler onpause;
  58. attribute EventHandler onplay;
  59. attribute EventHandler onplaying;
  60. attribute EventHandler onprogress;
  61. attribute EventHandler onratechange;
  62. attribute EventHandler onreset;
  63. attribute EventHandler onresize;
  64. attribute EventHandler onscroll;
  65. attribute EventHandler onsecuritypolicyviolation;
  66. attribute EventHandler onseeked;
  67. attribute EventHandler onseeking;
  68. attribute EventHandler onselect;
  69. attribute EventHandler onslotchange;
  70. attribute EventHandler onstalled;
  71. attribute EventHandler onsubmit;
  72. attribute EventHandler onsuspend;
  73. attribute EventHandler ontimeupdate;
  74. attribute EventHandler ontoggle;
  75. attribute EventHandler onvolumechange;
  76. attribute EventHandler onwaiting;
  77. attribute EventHandler onwebkitanimationend;
  78. attribute EventHandler onwebkitanimationiteration;
  79. attribute EventHandler onwebkitanimationstart;
  80. attribute EventHandler onwebkittransitionend;
  81. attribute EventHandler onwheel;
  82. };
  83. // https://html.spec.whatwg.org/#windoweventhandlers
  84. interface mixin WindowEventHandlers {
  85. attribute EventHandler onafterprint;
  86. attribute EventHandler onbeforeprint;
  87. attribute OnBeforeUnloadEventHandler onbeforeunload;
  88. attribute EventHandler onhashchange;
  89. attribute EventHandler onlanguagechange;
  90. attribute EventHandler onmessage;
  91. attribute EventHandler onmessageerror;
  92. attribute EventHandler onoffline;
  93. attribute EventHandler ononline;
  94. attribute EventHandler onpagehide;
  95. attribute EventHandler onpageshow;
  96. attribute EventHandler onpopstate;
  97. attribute EventHandler onrejectionhandled;
  98. attribute EventHandler onstorage;
  99. attribute EventHandler onunhandledrejection;
  100. attribute EventHandler onunload;
  101. };