From 66bc430b24a0cb1fe2d51e2b5983ea8833ba22b9 Mon Sep 17 00:00:00 2001 From: DileepReddyP <43650739+DileepReddyP@users.noreply.github.com> Date: Mon, 7 Oct 2024 23:13:25 -0400 Subject: [PATCH] Sorted Bindings.conf alphabetically (#33713) Checked that this is a valid Python object and is equivalent to the unsorted file Signed-off-by: Dileep Reddy --- .../script/dom/bindings/codegen/Bindings.conf | 296 +++++++++--------- 1 file changed, 148 insertions(+), 148 deletions(-) diff --git a/components/script/dom/bindings/codegen/Bindings.conf b/components/script/dom/bindings/codegen/Bindings.conf index 50d9bb6e7c7..fa5b0755e79 100644 --- a/components/script/dom/bindings/codegen/Bindings.conf +++ b/components/script/dom/bindings/codegen/Bindings.conf @@ -14,40 +14,160 @@ DOMInterfaces = { +'AbstractRange': { + 'weakReferenceable': True, +}, + +'AudioContext': { + 'inRealms': ['Close', 'Suspend'], +}, + +'BaseAudioContext': { + 'inRealms': ['DecodeAudioData', 'Resume'], +}, + 'Blob': { 'weakReferenceable': True, }, +'Bluetooth': { + 'inRealms': ['GetAvailability', 'RequestDevice'], +}, + +'BluetoothDevice': { + 'inRealms': ['WatchAdvertisements'], +}, + +'BluetoothRemoteGATTCharacteristic': { + 'inRealms': ['ReadValue', 'StartNotifications', 'StopNotifications', 'WriteValue'], +}, + +'BluetoothRemoteGATTDescriptor': { + 'inRealms': ['ReadValue', 'WriteValue'], +}, + +'BluetoothRemoteGATTServer': { + 'inRealms': ['Connect'], +}, + +'CustomElementRegistry': { + 'inRealms': ['WhenDefined'], +}, + +'DOMImplementation': { + 'canGc': ['CreateDocument', 'CreateHTMLDocument'], +}, + +'DOMParser': { + 'canGc': ['ParseFromString'], +}, + +'Document': { + 'canGc': ['Close', 'CreateElement', 'CreateElementNS', 'ImportNode', 'SetTitle', 'Write', 'Writeln'], +}, + +'DynamicModuleOwner': { + 'inRealms': ['PromiseAttribute'], +}, + +'Element': { + 'canGc': ['InsertAdjacentHTML', 'SetInnerHTML', 'SetOuterHTML'], +}, + +'EventSource': { + 'weakReferenceable': True, +}, + 'File': { 'weakReferenceable': True, }, +'GPU': { + 'inRealms': ['RequestAdapter'], +}, + +'GPUAdapter': { + 'inRealms': ['RequestAdapterInfo', 'RequestDevice'], +}, + +'GPUBuffer': { + 'inRealms': ['MapAsync'], +}, + +'GPUDevice': { + 'inRealms': [ + 'CreateComputePipelineAsync', + 'CreateRenderPipelineAsync', + 'CreateShaderModule', # Creates promise for compilation info + 'PopErrorScope' + ], + 'weakReferenceable': True, # for usage in GlobalScope https://github.com/servo/servo/issues/32519 +}, + +'GamepadHapticActuator': { + 'inRealms': ['PlayEffect', 'Reset'] +}, + +'HTMLMediaElement': { + 'canGc': ['Load', 'Pause', 'Play', 'SetSrcObject'], + 'inRealms': ['Play'], +}, + +'HTMLTemplateElement': { + 'canGc': ['Content'], +}, + +'MediaDevices': { + 'inRealms': ['GetUserMedia'], +}, + 'MediaQueryList': { 'weakReferenceable': True, }, +'MessagePort': { + 'weakReferenceable': True, +}, + +'NavigationPreloadManager': { + 'inRealms': ['Disable', 'Enable', 'GetState', 'SetHeaderValue'], +}, + +'Navigator': { + 'inRealms': ['GetVRDisplays'], +}, + +'Node': { + 'canGc': ['CloneNode'], +}, + +'OfflineAudioContext': { + 'inRealms': ['StartRendering'], +}, + 'Promise': { 'spiderMonkeyInterface': True, }, -'AbstractRange': { - 'weakReferenceable': True, -}, - -'StaticRange': { - 'weakReferenceable': True, +'RTCPeerConnection': { + 'inRealms': ['AddIceCandidate', 'CreateAnswer', 'CreateOffer', 'SetLocalDescription', 'SetRemoteDescription'], }, 'Range': { - 'weakReferenceable': True, - 'canGc': ['CreateContextualFragment', 'ExtractContents', 'CloneContents', 'CloneRange', 'SurroundContents'], -}, - -'EventSource': { + 'canGc': ['CloneContents', 'CloneRange', 'CreateContextualFragment', 'ExtractContents', 'SurroundContents'], 'weakReferenceable': True, }, -'MessagePort': { +'Selection': { + 'canGc': ['Collapse', 'CollapseToEnd', 'CollapseToStart', 'Extend', 'SelectAllChildren', 'SetBaseAndExtent', 'SetPosition'], +}, + + +'ServiceWorkerContainer': { + 'inRealms': ['Register'], +}, + +'StaticRange': { 'weakReferenceable': True, }, @@ -56,166 +176,46 @@ DOMInterfaces = { 'inRealms': ['PromiseAttribute', 'PromiseNativeHandler'], }, -'DynamicModuleOwner': { - 'inRealms': ['PromiseAttribute'], +'TestWorklet': { + 'inRealms': ['AddModule'], }, 'URL': { 'weakReferenceable': True, }, +'VRDisplay': { + 'inRealms': ['ExitPresent', 'RequestPresent'], +}, + +'Window': { + 'canGc': ['Stop'], + 'inRealms': ['Fetch', 'GetOpener'], +}, + 'WindowProxy' : { 'path': 'crate::dom::windowproxy::WindowProxy', 'register': False, }, -'Window': { - 'inRealms': ['Fetch', 'GetOpener'], - 'canGc': ['Stop'], -}, - 'WorkerGlobalScope': { 'inRealms': ['Fetch'], }, -'CustomElementRegistry': { - 'inRealms': ['WhenDefined'], -}, - -'AudioContext': { - 'inRealms': ['Suspend', 'Close'], -}, - -'NavigationPreloadManager': { - 'inRealms': ['Enable', 'Disable', 'SetHeaderValue', 'GetState'], -}, - -'HTMLMediaElement': { - 'inRealms': ['Play'], - 'canGc': ['Play', 'Pause', 'Load', 'SetSrcObject'], -}, - -'BluetoothRemoteGATTDescriptor': { - 'inRealms': ['ReadValue', 'WriteValue'], -}, - -'OfflineAudioContext': { - 'inRealms': ['StartRendering'], -}, - -'BluetoothRemoteGATTServer': { - 'inRealms': ['Connect'], -}, - -'ServiceWorkerContainer': { - 'inRealms': ['Register'], -}, - -'Navigator': { - 'inRealms': ['GetVRDisplays'], -}, - -'MediaDevices': { - 'inRealms': ['GetUserMedia'], -}, - -'XRSession': { - 'inRealms': ['UpdateRenderState', 'RequestReferenceSpace', 'UpdateTargetFrameRate'], -}, - -'Bluetooth': { - 'inRealms': ['RequestDevice', 'GetAvailability'], -}, - -'BaseAudioContext': { - 'inRealms': ['Resume', 'DecodeAudioData'], -}, - -'RTCPeerConnection': { - 'inRealms': ['AddIceCandidate', 'CreateOffer', 'CreateAnswer', 'SetLocalDescription', 'SetRemoteDescription'], -}, - -'BluetoothRemoteGATTCharacteristic': { - 'inRealms': ['ReadValue', 'WriteValue', 'StartNotifications', 'StopNotifications'], -}, - -'VRDisplay': { - 'inRealms': ['RequestPresent', 'ExitPresent'], -}, - 'Worklet': { 'inRealms': ['AddModule'], }, -'TestWorklet': { - 'inRealms': ['AddModule'], +'XMLHttpRequest': { + 'canGc': ['GetResponseXML', 'Response'], }, -'BluetoothDevice': { - 'inRealms': ['WatchAdvertisements'], +'XRSession': { + 'inRealms': ['RequestReferenceSpace', 'UpdateRenderState', 'UpdateTargetFrameRate'], }, 'XRSystem': { - 'inRealms': ['SupportsSessionMode', 'RequestSession'], -}, - -'GPU': { - 'inRealms': ['RequestAdapter'], -}, - -'GPUAdapter': { - 'inRealms': ['RequestDevice', 'RequestAdapterInfo'], -}, - -'GPUBuffer': { - 'inRealms': ['MapAsync'], -}, - -'GPUDevice': { - 'weakReferenceable': True, # for usage in GlobalScope https://github.com/servo/servo/issues/32519 - 'inRealms': [ - 'PopErrorScope', - 'CreateComputePipelineAsync', - 'CreateRenderPipelineAsync', - 'CreateShaderModule' # Creates promise for compilation info - ], -}, - -'GamepadHapticActuator': { - 'inRealms': ['PlayEffect', 'Reset'] -}, - -'DOMParser': { - 'canGc': ['ParseFromString'], -}, - -'XMLHttpRequest': { - 'canGc': ['Response', 'GetResponseXML'], -}, - -'DOMImplementation': { - 'canGc': ['CreateHTMLDocument', 'CreateDocument'], -}, - -'HTMLTemplateElement': { - 'canGc': ['Content'], -}, - -'Element': { - 'canGc': ['SetInnerHTML', 'SetOuterHTML', 'InsertAdjacentHTML'], -}, - -'Selection': { - 'canGc': ['Extend', 'SetBaseAndExtent', 'SelectAllChildren', 'Collapse', 'SetPosition', - 'CollapseToStart', 'CollapseToEnd'], -}, - -'Document': { - 'canGc': ['Write', 'Writeln', 'Close', 'SetTitle', 'CreateElementNS', 'CreateElement', 'ImportNode'], -}, - -'Node': { - 'canGc': ['CloneNode'], + 'inRealms': ['RequestSession', 'SupportsSessionMode'], }, }