1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-15 22:02:07 +00:00
serenity/Userland/Libraries/LibWeb/UIEvents/UIEvent.idl
Igor Pissolati 7f45a9e9c1 LibWeb: Add "which" attribute to UIEvent
This is non-standard but is supported by all major browsers.
2022-04-09 18:27:24 +02:00

17 lines
666 B
Text

#import <DOM/Event.idl>
interface UIEvent : Event {
constructor(DOMString type, optional UIEventInit eventInitDict = {});
readonly attribute Window? view;
readonly attribute long detail;
// NOTE: This is "deprecated, but supported for backwards-compatibility with widely-deployed implementations."
[ImplementedAs=init_ui_event] undefined initUIEvent(DOMString typeArg, optional boolean bubblesArg = false, optional boolean cancelableArg = false, optional Window? viewArg = null, optional long detailArg = 0);
readonly attribute unsigned long which;
};
dictionary UIEventInit : EventInit {
Window? view = null;
long detail = 0;
};