1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:27:45 +00:00

LibWeb: Replace ad-hoc EventHandler type with callback function typedef

This commit is contained in:
Idan Horowitz 2022-03-30 23:35:42 +03:00 committed by Andreas Kling
parent 1c4f128fd1
commit f45d361f03
12 changed files with 15 additions and 23 deletions

View file

@ -1,4 +1,5 @@
#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
[Exposed=(Window,Worker), CustomVisit]
interface AbortSignal : EventTarget {

View file

@ -5,6 +5,7 @@
#import <DOM/DocumentType.idl>
#import <DOM/Element.idl>
#import <DOM/Event.idl>
#import <DOM/EventHandler.idl>
#import <DOM/HTMLCollection.idl>
#import <DOM/Node.idl>
#import <DOM/NodeFilter.idl>

View file

@ -0,0 +1,3 @@
[LegacyTreatNonObjectAsNull]
callback EventHandlerNonNull = any (Event event);
typedef EventHandlerNonNull? EventHandler;