IDL: Add missing #imports

This commit is contained in:
Matthew Olsson 2023-11-08 11:04:56 -07:00 committed by Andreas Kling
parent 3ff481938e
commit 1a94241f58
Notes: sideshowbarker 2024-07-17 06:40:35 +09:00
30 changed files with 47 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#import <Animations/AnimationEffect.idl>
#import <Animations/AnimationTimeline.idl>
#import <DOM/EventTarget.idl>
// https://www.w3.org/TR/web-animations-1/#the-animation-interface
[Exposed=Window]

View file

@ -1,4 +1,5 @@
#import <CSS/CSSRule.idl>
#import <CSS/CSSStyleDeclaration.idl>
// https://drafts.csswg.org/css-animations-1/#interface-csskeyframerule-idl
[Exposed=Window]

View file

@ -1,4 +1,5 @@
#import <CSS/CSSRule.idl>
#import <CSS/CSSKeyframeRule.idl>
// https://drafts.csswg.org/css-animations-1/#interface-csskeyframesrule
[Exposed=Window]

View file

@ -1,5 +1,6 @@
#import <CSS/CSSRule.idl>
#import <CSS/CSSRuleList.idl>
#import <CSS/StyleSheet.idl>
// https://drafts.csswg.org/cssom/#cssstylesheet
[Exposed=Window]

View file

@ -1,3 +1,5 @@
#import <DOM/Node.idl>
// https://dom.spec.whatwg.org/#interface-abstractrange
[Exposed=Window]
interface AbstractRange {

View file

@ -1,3 +1,5 @@
#import <DOM/Text.idl>
// https://dom.spec.whatwg.org/#interface-cdatasection
[Exposed=Window]
interface CDATASection : Text {

View file

@ -1,3 +1,6 @@
// FIXME: This #import causes a circular import-related error
// #import <DOM/Node.idl>
// https://dom.spec.whatwg.org/#childnode
interface mixin ChildNode {
[CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);

View file

@ -1,3 +1,5 @@
#import <DOM/Event.idl>
[LegacyTreatNonObjectAsNull]
callback EventHandlerNonNull = any (Event event);
typedef EventHandlerNonNull? EventHandler;

View file

@ -1,3 +1,6 @@
#import <DOM/HTMLCollection.idl>
#import <DOM/RadioNodeList.idl>
// https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#htmlformcontrolscollection
[Exposed=Window]
interface HTMLFormControlsCollection : HTMLCollection {

View file

@ -1,3 +1,6 @@
// FIXME: This #import causes a circular import-related error
// #import <HTML/HTMLSlotElement.idl>
// https://dom.spec.whatwg.org/#mixin-slotable
interface mixin Slottable {
readonly attribute HTMLSlotElement? assignedSlot;

View file

@ -1,4 +1,6 @@
#import <FileAPI/Blob.idl>
#import <Streams/ReadableStream.idl>
#import <XHR/FormData.idl>
// https://fetch.spec.whatwg.org/#body
interface mixin Body {

View file

@ -1,3 +1,5 @@
#import <Streams/ReadableStream.idl>
// https://w3c.github.io/FileAPI/#blob-section
[Exposed=(Window,Worker), Serializable]
interface Blob {

View file

@ -1,3 +1,5 @@
#import <FileAPI/File.idl>
// https://w3c.github.io/FileAPI/#filelist-section
[Exposed=(Window,Worker), Serializable]
interface FileList {

View file

@ -1,5 +1,6 @@
#import <DOM/EventTarget.idl>
#import <FileAPI/Blob.idl>
#import <WebIDL/DOMException.idl>
// https://w3c.github.io/FileAPI/#dfn-filereader
[Exposed=(Window,Worker)]

View file

@ -1,4 +1,5 @@
#import <Geometry/DOMPoint.idl>
#import <Geometry/DOMRect.idl>
#import <Geometry/DOMRectReadOnly.idl>
// https://drafts.fxtf.org/geometry/#domquad

View file

@ -1,3 +1,5 @@
#import <HTML/CanvasRenderingContext2D.idl>
// https://html.spec.whatwg.org/multipage/canvas.html#canvasimagesmoothing
interface mixin CanvasImageSmoothing {
// image smoothing

View file

@ -1,3 +1,5 @@
#import <HTML/CanvasRenderingContext2D.idl>
// https://html.spec.whatwg.org/multipage/canvas.html#canvastextalign
// enum CanvasTextAlign { "start", "end", "left", "right", "center" };
// enum CanvasTextBaseline { "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" };

View file

@ -1,3 +1,4 @@
#import <FileAPI/Blob.idl>
#import <HTML/CanvasRenderingContext2D.idl>
#import <HTML/HTMLElement.idl>
#import <WebGL/WebGLRenderingContext.idl>

View file

@ -1,5 +1,6 @@
#import <CSS/ElementCSSInlineStyle.idl>
#import <HTML/DOMStringMap.idl>
#import <DOM/Element.idl>
#import <DOM/EventHandler.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlelement

View file

@ -1,4 +1,5 @@
#import <HTML/HTMLElement.idl>
#import <HTML/HTMLFormElement.idl>
#import <HTML/HTMLOptionsCollection.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlselectelement

View file

@ -8,6 +8,7 @@
#import <HighResolutionTime/Performance.idl>
#import <HTML/AnimationFrameProvider.idl>
#import <HTML/CustomElements/CustomElementRegistry.idl>
#import <HTML/History.idl>
#import <HTML/Navigation.idl>
#import <HTML/Navigator.idl>
#import <HTML/WindowLocalStorage.idl>

View file

@ -1,3 +1,5 @@
#import <SVG/SVGElement.idl>
// https://drafts.fxtf.org/css-masking/#InterfaceSVGClipPathElement
[Exposed=Window]
interface SVGClipPathElement : SVGElement {

View file

@ -1,4 +1,5 @@
#import <SVG/SVGAnimatedLength.idl>
#import <SVG/SVGGraphicsElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#embedded-InterfaceSVGForeignObjectElement
[Exposed=Window]

View file

@ -1,3 +1,4 @@
#import <SVG/SVGAnimatedLength.idl>
#import <SVG/SVGGradientElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGLinearGradientElement

View file

@ -1,3 +1,5 @@
#import <SVG/SVGElement.idl>
// https://drafts.fxtf.org/css-masking/#InterfaceSVGMaskElement
[Exposed=Window]
interface SVGMaskElement : SVGElement {

View file

@ -1,3 +1,4 @@
#import <SVG/SVGAnimatedLength.idl>
#import <SVG/SVGGradientElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGRadialGradientElement

View file

@ -1,4 +1,5 @@
#import <HTML/Scripting/Fetching.idl>
#import <SVG/SVGElement.idl>
// https://www.w3.org/TR/SVG/interact.html#InterfaceSVGScriptElement
[Exposed=Window]

View file

@ -1,3 +1,5 @@
#import <UIEvents/UIEvent.idl>
// https://w3c.github.io/uievents/#mouseevent
[Exposed=Window]
interface MouseEvent : UIEvent {

View file

@ -1,4 +1,5 @@
#import <DOM/Event.idl>
#import <HTML/Window.idl>
// https://w3c.github.io/uievents/#uievent
[Exposed=Window]

View file

@ -1,5 +1,6 @@
#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
#import <FileAPI/Blob.idl>
// https://websockets.spec.whatwg.org/#websocket
[Exposed=(Window,Worker)]