script_bindings/home/runner/work/servo/servo/target/debug/build/script_bindings-d55f55d5af1efaee/out/
InheritTypes.rs

1/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */
2
3#[derive(Copy)]
4pub union TopTypeId {
5    /// ID used by abstract interfaces.
6    pub abstract_: (),
7    /// ID used by interfaces that are not castable.
8    pub alone: (),
9    /// ID used by interfaces that derive from AbstractRange.
10    pub abstractrange: AbstractRangeTypeId,
11    /// ID used by interfaces that derive from Blob.
12    pub blob: BlobTypeId,
13    /// ID used by interfaces that derive from CSSRule.
14    pub cssrule: CSSRuleTypeId,
15    /// ID used by interfaces that derive from Credential.
16    pub credential: CredentialTypeId,
17    /// ID used by interfaces that derive from DOMException.
18    pub domexception: DOMExceptionTypeId,
19    /// ID used by interfaces that derive from DOMMatrixReadOnly.
20    pub dommatrixreadonly: DOMMatrixReadOnlyTypeId,
21    /// ID used by interfaces that derive from DOMPointReadOnly.
22    pub dompointreadonly: DOMPointReadOnlyTypeId,
23    /// ID used by interfaces that derive from DOMRectReadOnly.
24    pub domrectreadonly: DOMRectReadOnlyTypeId,
25    /// ID used by interfaces that derive from Event.
26    pub event: EventTypeId,
27    /// ID used by interfaces that derive from EventTarget.
28    pub eventtarget: EventTargetTypeId,
29    /// ID used by interfaces that derive from GPUError.
30    pub gpuerror: GPUErrorTypeId,
31    /// ID used by interfaces that derive from HTMLCollection.
32    pub htmlcollection: HTMLCollectionTypeId,
33    /// ID used by interfaces that derive from IDBCursor.
34    pub idbcursor: IDBCursorTypeId,
35    /// ID used by interfaces that derive from NodeList.
36    pub nodelist: NodeListTypeId,
37    /// ID used by interfaces that derive from PerformanceEntry.
38    pub performanceentry: PerformanceEntryTypeId,
39    /// ID used by interfaces that derive from StyleSheet.
40    pub stylesheet: StyleSheetTypeId,
41    /// ID used by interfaces that derive from TestBinding.
42    pub testbinding: TestBindingTypeId,
43    /// ID used by interfaces that derive from WebGLObject.
44    pub webglobject: WebGLObjectTypeId,
45    /// ID used by interfaces that derive from XRPose.
46    pub xrpose: XRPoseTypeId,
47    /// ID used by interfaces that derive from XRSubImage.
48    pub xrsubimage: XRSubImageTypeId,
49}
50
51impl Clone for TopTypeId {
52    fn clone(&self) -> Self { *self }
53}
54
55#[derive(Clone, Copy, Debug, PartialEq)]
56pub enum EventTargetTypeId {
57    EventTarget,
58    AbortSignal,
59    AudioNode(AudioNodeTypeId),
60    AudioTrackList,
61    BaseAudioContext(BaseAudioContextTypeId),
62    Bluetooth,
63    BluetoothDevice,
64    BluetoothRemoteGATTCharacteristic,
65    BluetoothRemoteGATTService,
66    BroadcastChannel,
67    Clipboard,
68    CookieStore,
69    EventSource,
70    FileReader,
71    FontFaceSet,
72    GPUDevice,
73    GlobalScope(GlobalScopeTypeId),
74    IDBDatabase,
75    IDBRequest(IDBRequestTypeId),
76    IDBTransaction,
77    MediaDevices,
78    MediaQueryList,
79    MediaStream,
80    MediaStreamTrack,
81    MessagePort,
82    Node(NodeTypeId),
83    Notification,
84    OffscreenCanvas,
85    Performance,
86    PermissionStatus(PermissionStatusTypeId),
87    RTCDataChannel,
88    RTCPeerConnection,
89    ServiceWorker,
90    ServiceWorkerContainer,
91    ServiceWorkerRegistration,
92    TextTrack,
93    TextTrackCue(TextTrackCueTypeId),
94    TextTrackList,
95    VideoTrackList,
96    WebSocket,
97    Worker,
98    XMLHttpRequestEventTarget(XMLHttpRequestEventTargetTypeId),
99    XRLayer(XRLayerTypeId),
100    XRSession,
101    XRSpace(XRSpaceTypeId),
102    XRSystem
103}
104
105#[derive(Clone, Copy, Debug, PartialEq)]
106pub enum AudioNodeTypeId {
107    AudioNode,
108    AnalyserNode,
109    AudioDestinationNode,
110    AudioScheduledSourceNode(AudioScheduledSourceNodeTypeId),
111    BiquadFilterNode,
112    ChannelMergerNode,
113    ChannelSplitterNode,
114    GainNode,
115    IIRFilterNode,
116    MediaElementAudioSourceNode,
117    MediaStreamAudioDestinationNode,
118    MediaStreamAudioSourceNode,
119    MediaStreamTrackAudioSourceNode,
120    PannerNode
121}
122
123#[derive(Clone, Copy, Debug, PartialEq)]
124pub enum EventTypeId {
125    Event,
126    AnimationEvent,
127    BeforeUnloadEvent,
128    BluetoothAdvertisingEvent,
129    ClipboardEvent,
130    CloseEvent,
131    CommandEvent,
132    CustomEvent,
133    DebuggerAddDebuggeeEvent,
134    DebuggerGetPossibleBreakpointsEvent,
135    ErrorEvent,
136    ExtendableEvent(ExtendableEventTypeId),
137    FormDataEvent,
138    GPUUncapturedErrorEvent,
139    GamepadEvent,
140    HashChangeEvent,
141    IDBVersionChangeEvent,
142    MediaQueryListEvent,
143    MessageEvent,
144    OfflineAudioCompletionEvent,
145    PageTransitionEvent,
146    PopStateEvent,
147    ProgressEvent,
148    PromiseRejectionEvent,
149    RTCDataChannelEvent,
150    RTCErrorEvent,
151    RTCPeerConnectionIceEvent,
152    RTCTrackEvent,
153    SecurityPolicyViolationEvent,
154    StorageEvent,
155    SubmitEvent,
156    ToggleEvent,
157    TrackEvent,
158    TransitionEvent,
159    UIEvent(UIEventTypeId),
160    WebGLContextEvent,
161    XRInputSourceEvent,
162    XRInputSourcesChangeEvent,
163    XRLayerEvent,
164    XRReferenceSpaceEvent,
165    XRSessionEvent
166}
167
168#[derive(Clone, Copy, Debug, PartialEq)]
169pub enum NodeTypeId {
170    Attr,
171    CharacterData(CharacterDataTypeId),
172    Document(DocumentTypeId),
173    DocumentFragment(DocumentFragmentTypeId),
174    DocumentType,
175    Element(ElementTypeId)
176}
177
178#[derive(Clone, Copy, Debug, PartialEq)]
179pub enum AudioScheduledSourceNodeTypeId {
180    AudioScheduledSourceNode,
181    AudioBufferSourceNode,
182    ConstantSourceNode,
183    OscillatorNode,
184    StereoPannerNode
185}
186
187#[derive(Clone, Copy, Debug, PartialEq)]
188pub enum BaseAudioContextTypeId {
189    BaseAudioContext,
190    AudioContext,
191    OfflineAudioContext
192}
193
194#[derive(Clone, Copy, Debug, PartialEq)]
195pub enum PermissionStatusTypeId {
196    PermissionStatus,
197    BluetoothPermissionResult
198}
199
200#[derive(Clone, Copy, Debug, PartialEq)]
201pub enum TextTypeId {
202    Text,
203    CDATASection
204}
205
206#[derive(Clone, Copy, Debug, PartialEq)]
207pub enum CSSGroupingRuleTypeId {
208    CSSConditionRule(CSSConditionRuleTypeId),
209    CSSLayerBlockRule,
210    CSSStyleRule
211}
212
213#[derive(Clone, Copy, Debug, PartialEq)]
214pub enum CSSRuleTypeId {
215    CSSFontFaceRule,
216    CSSGroupingRule(CSSGroupingRuleTypeId),
217    CSSImportRule,
218    CSSKeyframeRule,
219    CSSKeyframesRule,
220    CSSLayerStatementRule,
221    CSSNamespaceRule,
222    CSSNestedDeclarations
223}
224
225#[derive(Clone, Copy, Debug, PartialEq)]
226pub enum CSSConditionRuleTypeId {
227    CSSMediaRule,
228    CSSSupportsRule
229}
230
231#[derive(Clone, Copy, Debug, PartialEq)]
232pub enum StyleSheetTypeId {
233    StyleSheet,
234    CSSStyleSheet
235}
236
237#[derive(Clone, Copy, Debug, PartialEq)]
238pub enum CharacterDataTypeId {
239    Comment,
240    ProcessingInstruction,
241    Text(TextTypeId)
242}
243
244#[derive(Clone, Copy, Debug, PartialEq)]
245pub enum UIEventTypeId {
246    UIEvent,
247    CompositionEvent,
248    FocusEvent,
249    InputEvent,
250    KeyboardEvent,
251    MouseEvent(MouseEventTypeId),
252    TouchEvent
253}
254
255#[derive(Clone, Copy, Debug, PartialEq)]
256pub enum DOMMatrixReadOnlyTypeId {
257    DOMMatrixReadOnly,
258    DOMMatrix
259}
260
261#[derive(Clone, Copy, Debug, PartialEq)]
262pub enum DOMPointReadOnlyTypeId {
263    DOMPointReadOnly,
264    DOMPoint
265}
266
267#[derive(Clone, Copy, Debug, PartialEq)]
268pub enum DOMRectReadOnlyTypeId {
269    DOMRectReadOnly,
270    DOMRect
271}
272
273#[derive(Clone, Copy, Debug, PartialEq)]
274pub enum GlobalScopeTypeId {
275    DebuggerGlobalScope,
276    DissimilarOriginWindow,
277    Window,
278    WorkerGlobalScope(WorkerGlobalScopeTypeId),
279    WorkletGlobalScope(WorkletGlobalScopeTypeId)
280}
281
282#[derive(Clone, Copy, Debug, PartialEq)]
283pub enum WorkerGlobalScopeTypeId {
284    DedicatedWorkerGlobalScope,
285    ServiceWorkerGlobalScope
286}
287
288#[derive(Clone, Copy, Debug, PartialEq)]
289pub enum ExtendableEventTypeId {
290    ExtendableEvent,
291    ExtendableMessageEvent
292}
293
294#[derive(Clone, Copy, Debug, PartialEq)]
295pub enum BlobTypeId {
296    Blob,
297    File
298}
299
300#[derive(Clone, Copy, Debug, PartialEq)]
301pub enum GPUErrorTypeId {
302    GPUError,
303    GPUInternalError,
304    GPUOutOfMemoryError,
305    GPUValidationError
306}
307
308#[derive(Clone, Copy, Debug, PartialEq)]
309pub enum DOMExceptionTypeId {
310    DOMException,
311    GPUPipelineError,
312    QuotaExceededError,
313    RTCError
314}
315
316#[derive(Clone, Copy, Debug, PartialEq)]
317pub enum HTMLElementTypeId {
318    HTMLElement,
319    HTMLAnchorElement,
320    HTMLAreaElement,
321    HTMLBRElement,
322    HTMLBaseElement,
323    HTMLBodyElement,
324    HTMLButtonElement,
325    HTMLCanvasElement,
326    HTMLDListElement,
327    HTMLDataElement,
328    HTMLDataListElement,
329    HTMLDetailsElement,
330    HTMLDialogElement,
331    HTMLDirectoryElement,
332    HTMLDivElement,
333    HTMLEmbedElement,
334    HTMLFieldSetElement,
335    HTMLFontElement,
336    HTMLFormElement,
337    HTMLFrameElement,
338    HTMLFrameSetElement,
339    HTMLHRElement,
340    HTMLHeadElement,
341    HTMLHeadingElement,
342    HTMLHtmlElement,
343    HTMLIFrameElement,
344    HTMLImageElement,
345    HTMLInputElement,
346    HTMLLIElement,
347    HTMLLabelElement,
348    HTMLLegendElement,
349    HTMLLinkElement,
350    HTMLMapElement,
351    HTMLMediaElement(HTMLMediaElementTypeId),
352    HTMLMenuElement,
353    HTMLMetaElement,
354    HTMLMeterElement,
355    HTMLModElement,
356    HTMLOListElement,
357    HTMLObjectElement,
358    HTMLOptGroupElement,
359    HTMLOptionElement,
360    HTMLOutputElement,
361    HTMLParagraphElement,
362    HTMLParamElement,
363    HTMLPictureElement,
364    HTMLPreElement,
365    HTMLProgressElement,
366    HTMLQuoteElement,
367    HTMLScriptElement,
368    HTMLSelectElement,
369    HTMLSlotElement,
370    HTMLSourceElement,
371    HTMLSpanElement,
372    HTMLStyleElement,
373    HTMLTableCaptionElement,
374    HTMLTableCellElement,
375    HTMLTableColElement,
376    HTMLTableElement,
377    HTMLTableRowElement,
378    HTMLTableSectionElement,
379    HTMLTemplateElement,
380    HTMLTextAreaElement,
381    HTMLTimeElement,
382    HTMLTitleElement,
383    HTMLTrackElement,
384    HTMLUListElement,
385    HTMLUnknownElement
386}
387
388#[derive(Clone, Copy, Debug, PartialEq)]
389pub enum HTMLMediaElementTypeId {
390    HTMLAudioElement,
391    HTMLVideoElement
392}
393
394#[derive(Clone, Copy, Debug, PartialEq)]
395pub enum DocumentTypeId {
396    Document,
397    HTMLDocument,
398    XMLDocument
399}
400
401#[derive(Clone, Copy, Debug, PartialEq)]
402pub enum ElementTypeId {
403    Element,
404    HTMLElement(HTMLElementTypeId),
405    SVGElement(SVGElementTypeId)
406}
407
408#[derive(Clone, Copy, Debug, PartialEq)]
409pub enum HTMLCollectionTypeId {
410    HTMLCollection,
411    HTMLFormControlsCollection,
412    HTMLOptionsCollection
413}
414
415#[derive(Clone, Copy, Debug, PartialEq)]
416pub enum IDBCursorTypeId {
417    IDBCursor,
418    IDBCursorWithValue
419}
420
421#[derive(Clone, Copy, Debug, PartialEq)]
422pub enum IDBRequestTypeId {
423    IDBRequest,
424    IDBOpenDBRequest
425}
426
427#[derive(Clone, Copy, Debug, PartialEq)]
428pub enum PerformanceEntryTypeId {
429    PerformanceEntry,
430    LargestContentfulPaint,
431    PerformanceMark,
432    PerformanceMeasure,
433    PerformancePaintTiming,
434    PerformanceResourceTiming(PerformanceResourceTimingTypeId),
435    VisibilityStateEntry
436}
437
438#[derive(Clone, Copy, Debug, PartialEq)]
439pub enum WorkletGlobalScopeTypeId {
440    WorkletGlobalScope,
441    PaintWorkletGlobalScope,
442    TestWorkletGlobalScope
443}
444
445#[derive(Clone, Copy, Debug, PartialEq)]
446pub enum CredentialTypeId {
447    Credential,
448    PasswordCredential
449}
450
451#[derive(Clone, Copy, Debug, PartialEq)]
452pub enum PerformanceResourceTimingTypeId {
453    PerformanceResourceTiming,
454    PerformanceNavigationTiming
455}
456
457#[derive(Clone, Copy, Debug, PartialEq)]
458pub enum MouseEventTypeId {
459    MouseEvent,
460    PointerEvent,
461    WheelEvent
462}
463
464#[derive(Clone, Copy, Debug, PartialEq)]
465pub enum NodeListTypeId {
466    NodeList,
467    RadioNodeList
468}
469
470#[derive(Clone, Copy, Debug, PartialEq)]
471pub enum AbstractRangeTypeId {
472    AbstractRange,
473    Range,
474    StaticRange
475}
476
477#[derive(Clone, Copy, Debug, PartialEq)]
478pub enum SVGElementTypeId {
479    SVGElement,
480    SVGGraphicsElement(SVGGraphicsElementTypeId)
481}
482
483#[derive(Clone, Copy, Debug, PartialEq)]
484pub enum SVGGraphicsElementTypeId {
485    SVGImageElement,
486    SVGSVGElement
487}
488
489#[derive(Clone, Copy, Debug, PartialEq)]
490pub enum DocumentFragmentTypeId {
491    DocumentFragment,
492    ShadowRoot
493}
494
495#[derive(Clone, Copy, Debug, PartialEq)]
496pub enum TestBindingTypeId {
497    TestBinding,
498    TestBindingProxy
499}
500
501#[derive(Clone, Copy, Debug, PartialEq)]
502pub enum TextTrackCueTypeId {
503    TextTrackCue,
504    VTTCue
505}
506
507#[derive(Clone, Copy, Debug, PartialEq)]
508pub enum WebGLObjectTypeId {
509    WebGLBuffer,
510    WebGLFramebuffer,
511    WebGLProgram,
512    WebGLQuery,
513    WebGLRenderbuffer,
514    WebGLSampler,
515    WebGLShader,
516    WebGLSync,
517    WebGLTexture,
518    WebGLTransformFeedback,
519    WebGLVertexArrayObject,
520    WebGLVertexArrayObjectOES
521}
522
523#[derive(Clone, Copy, Debug, PartialEq)]
524pub enum XMLHttpRequestEventTargetTypeId {
525    XMLHttpRequest,
526    XMLHttpRequestUpload
527}
528
529#[derive(Clone, Copy, Debug, PartialEq)]
530pub enum XRReferenceSpaceTypeId {
531    XRReferenceSpace,
532    XRBoundedReferenceSpace
533}
534
535#[derive(Clone, Copy, Debug, PartialEq)]
536pub enum XRLayerTypeId {
537    XRLayer,
538    XRCompositionLayer(XRCompositionLayerTypeId),
539    XRWebGLLayer
540}
541
542#[derive(Clone, Copy, Debug, PartialEq)]
543pub enum XRCompositionLayerTypeId {
544    XRCompositionLayer,
545    XRCubeLayer,
546    XRCylinderLayer,
547    XREquirectLayer,
548    XRProjectionLayer,
549    XRQuadLayer
550}
551
552#[derive(Clone, Copy, Debug, PartialEq)]
553pub enum XRPoseTypeId {
554    XRPose,
555    XRJointPose,
556    XRViewerPose
557}
558
559#[derive(Clone, Copy, Debug, PartialEq)]
560pub enum XRSpaceTypeId {
561    XRSpace,
562    XRJointSpace,
563    XRReferenceSpace(XRReferenceSpaceTypeId)
564}
565
566#[derive(Clone, Copy, Debug, PartialEq)]
567pub enum XRSubImageTypeId {
568    XRSubImage,
569    XRWebGLSubImage
570}
571