mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:12: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 :^)
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <HTML/CanvasRenderingContext2D.idl>
 | |
| #import <HTML/HTMLElement.idl>
 | |
| #import <WebGL/WebGLRenderingContext.idl>
 | |
| 
 | |
| typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
 | |
| 
 | |
| // https://html.spec.whatwg.org/multipage/semantics.html#htmlcanvaselement
 | |
| [Exposed=Window]
 | |
| interface HTMLCanvasElement : HTMLElement {
 | |
| 
 | |
|     RenderingContext? getContext(DOMString contextId, optional any options = null);
 | |
|     attribute unsigned long width;
 | |
|     attribute unsigned long height;
 | |
| 
 | |
|     USVString toDataURL(optional DOMString type = "image/png", optional double quality);
 | |
| 
 | |
| };
 |