EventHandler.idl 4.0 KB

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