mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-12 06:02:51 +00:00
NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
#import <DOM/EventTarget.idl>
|
|
|
|
// https://dom.spec.whatwg.org/#event
|
|
[Exposed=*]
|
|
interface Event {
|
|
|
|
constructor(DOMString type, optional EventInit eventInitDict = {});
|
|
|
|
readonly attribute DOMString type;
|
|
readonly attribute EventTarget? target;
|
|
readonly attribute EventTarget? srcElement;
|
|
readonly attribute EventTarget? currentTarget;
|
|
sequence<EventTarget> composedPath();
|
|
|
|
const unsigned short NONE = 0;
|
|
const unsigned short CAPTURING_PHASE = 1;
|
|
const unsigned short AT_TARGET = 2;
|
|
const unsigned short BUBBLING_PHASE = 3;
|
|
readonly attribute unsigned short eventPhase;
|
|
|
|
undefined stopPropagation();
|
|
attribute boolean cancelBubble;
|
|
undefined stopImmediatePropagation();
|
|
|
|
readonly attribute boolean bubbles;
|
|
readonly attribute boolean cancelable;
|
|
attribute boolean returnValue;
|
|
undefined preventDefault();
|
|
readonly attribute boolean defaultPrevented;
|
|
readonly attribute boolean composed;
|
|
|
|
readonly attribute boolean isTrusted;
|
|
readonly attribute double timeStamp;
|
|
|
|
undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
|
|
|
|
};
|
|
|
|
dictionary EventInit {
|
|
boolean bubbles = false;
|
|
boolean cancelable = false;
|
|
boolean composed = false;
|
|
};
|