mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:02:44 +00:00 
			
		
		
		
	 67ceba2e6a
			
		
	
	
		67ceba2e6a
		
	
	
	
	
		
			
			The intent is to use these to autogenerate prototype declarations for Window and WorkerGlobalScope classes. And the spec links are just nice to have :^)
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			672 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			672 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/AbortSignal.idl>
 | |
| 
 | |
| // https://dom.spec.whatwg.org/#eventtarget
 | |
| [Exposed=*]
 | |
| interface EventTarget {
 | |
| 
 | |
|     undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
 | |
|     undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
 | |
| 
 | |
|     [ImplementedAs=dispatch_event_binding] boolean dispatchEvent(Event event);
 | |
| 
 | |
| };
 | |
| 
 | |
| dictionary EventListenerOptions {
 | |
|     boolean capture = false;
 | |
| };
 | |
| 
 | |
| dictionary AddEventListenerOptions : EventListenerOptions {
 | |
|     boolean passive = false;
 | |
|     boolean once = false;
 | |
|     AbortSignal signal;
 | |
| };
 |