1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00
serenity/Userland/Libraries/LibWeb/UIEvents/UIEvent.idl
Kenneth Myhra ad5cbdc51b LibWeb: Port {Mouse,UI,Wheel,}Event to new String
This ports MouseEvent, UIEvent, WheelEvent, and Event to new String.
They all had a dependency to T::create() in
WebDriverConnection::fire_an_event() and therefore had to be ported in
the same commit.
2023-04-07 22:41:01 +02:00

19 lines
742 B
Text

#import <DOM/Event.idl>
// https://w3c.github.io/uievents/#uievent
[Exposed=Window, UseNewAKString]
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;
};