webidl: add support for constructors

This commit is contained in:
R. Andrew Ohana
2018-06-14 15:35:48 -07:00
parent 400015a061
commit c65cb51fba
4 changed files with 200 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@@ -13,6 +13,9 @@
// TODO: don't include this here, use Performance.webidl instead
typedef double DOMHighResTimeStamp;
// TODO: remove this when dicts are resolved
typedef boolean EventInit;
[Constructor(DOMString type, optional EventInit eventInitDict),
Exposed=(Window,Worker,System), ProbablyShortLivingWrapper]
interface Event {
@@ -60,3 +63,9 @@ interface Event {
optional boolean cancelable = false);
attribute boolean cancelBubble;
};
dictionary EventInit {
boolean bubbles = false;
boolean cancelable = false;
boolean composed = false;
};