2022-02-15 22:40:51 +03:30
|
|
|
#import <DOM/EventTarget.idl>
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://dom.spec.whatwg.org/#event
|
2023-04-06 16:12:33 +02:00
|
|
|
[Exposed=*, UseNewAKString]
|
2020-06-21 16:10:48 +02:00
|
|
|
interface Event {
|
|
|
|
|
2021-09-29 01:43:24 +03:00
|
|
|
constructor(DOMString type, optional EventInit eventInitDict = {});
|
2021-02-17 22:52:40 +01:00
|
|
|
|
2020-06-21 16:10:48 +02:00
|
|
|
readonly attribute DOMString type;
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute EventTarget? target;
|
2022-06-18 16:07:51 +01:00
|
|
|
readonly attribute EventTarget? srcElement;
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute EventTarget? currentTarget;
|
2021-10-16 05:25:53 +01:00
|
|
|
sequence<EventTarget> composedPath();
|
2020-11-21 18:32:39 +00:00
|
|
|
|
2021-10-19 03:41:21 +01:00
|
|
|
const unsigned short NONE = 0;
|
|
|
|
const unsigned short CAPTURING_PHASE = 1;
|
|
|
|
const unsigned short AT_TARGET = 2;
|
|
|
|
const unsigned short BUBBLING_PHASE = 3;
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute unsigned short eventPhase;
|
|
|
|
|
2020-12-09 21:32:04 +00:00
|
|
|
undefined stopPropagation();
|
2020-11-21 18:32:39 +00:00
|
|
|
attribute boolean cancelBubble;
|
2020-12-09 21:32:04 +00:00
|
|
|
undefined stopImmediatePropagation();
|
2020-11-21 18:32:39 +00:00
|
|
|
|
|
|
|
readonly attribute boolean bubbles;
|
|
|
|
readonly attribute boolean cancelable;
|
|
|
|
attribute boolean returnValue;
|
2020-12-09 21:32:04 +00:00
|
|
|
undefined preventDefault();
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute boolean defaultPrevented;
|
|
|
|
readonly attribute boolean composed;
|
|
|
|
|
|
|
|
readonly attribute boolean isTrusted;
|
2021-10-11 18:17:23 +02:00
|
|
|
readonly attribute double timeStamp;
|
2020-06-21 16:10:48 +02:00
|
|
|
|
2021-04-10 20:11:04 +01:00
|
|
|
undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
|
|
|
|
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2021-09-29 01:43:24 +03:00
|
|
|
|
|
|
|
dictionary EventInit {
|
|
|
|
boolean bubbles = false;
|
|
|
|
boolean cancelable = false;
|
|
|
|
boolean composed = false;
|
|
|
|
};
|