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 <dileepreddyp7@gmail.com>
This commit is contained in:
DileepReddyP 2024-10-07 23:13:25 -04:00 committed by GitHub
parent d3c0785d64
commit 66bc430b24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,40 +14,160 @@
DOMInterfaces = { DOMInterfaces = {
'AbstractRange': {
'weakReferenceable': True,
},
'AudioContext': {
'inRealms': ['Close', 'Suspend'],
},
'BaseAudioContext': {
'inRealms': ['DecodeAudioData', 'Resume'],
},
'Blob': { 'Blob': {
'weakReferenceable': True, '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': { 'File': {
'weakReferenceable': True, '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': { 'MediaQueryList': {
'weakReferenceable': True, 'weakReferenceable': True,
}, },
'MessagePort': {
'weakReferenceable': True,
},
'NavigationPreloadManager': {
'inRealms': ['Disable', 'Enable', 'GetState', 'SetHeaderValue'],
},
'Navigator': {
'inRealms': ['GetVRDisplays'],
},
'Node': {
'canGc': ['CloneNode'],
},
'OfflineAudioContext': {
'inRealms': ['StartRendering'],
},
'Promise': { 'Promise': {
'spiderMonkeyInterface': True, 'spiderMonkeyInterface': True,
}, },
'AbstractRange': { 'RTCPeerConnection': {
'weakReferenceable': True, 'inRealms': ['AddIceCandidate', 'CreateAnswer', 'CreateOffer', 'SetLocalDescription', 'SetRemoteDescription'],
},
'StaticRange': {
'weakReferenceable': True,
}, },
'Range': { 'Range': {
'weakReferenceable': True, 'canGc': ['CloneContents', 'CloneRange', 'CreateContextualFragment', 'ExtractContents', 'SurroundContents'],
'canGc': ['CreateContextualFragment', 'ExtractContents', 'CloneContents', 'CloneRange', 'SurroundContents'],
},
'EventSource': {
'weakReferenceable': True, 'weakReferenceable': True,
}, },
'MessagePort': { 'Selection': {
'canGc': ['Collapse', 'CollapseToEnd', 'CollapseToStart', 'Extend', 'SelectAllChildren', 'SetBaseAndExtent', 'SetPosition'],
},
'ServiceWorkerContainer': {
'inRealms': ['Register'],
},
'StaticRange': {
'weakReferenceable': True, 'weakReferenceable': True,
}, },
@ -56,166 +176,46 @@ DOMInterfaces = {
'inRealms': ['PromiseAttribute', 'PromiseNativeHandler'], 'inRealms': ['PromiseAttribute', 'PromiseNativeHandler'],
}, },
'DynamicModuleOwner': { 'TestWorklet': {
'inRealms': ['PromiseAttribute'], 'inRealms': ['AddModule'],
}, },
'URL': { 'URL': {
'weakReferenceable': True, 'weakReferenceable': True,
}, },
'VRDisplay': {
'inRealms': ['ExitPresent', 'RequestPresent'],
},
'Window': {
'canGc': ['Stop'],
'inRealms': ['Fetch', 'GetOpener'],
},
'WindowProxy' : { 'WindowProxy' : {
'path': 'crate::dom::windowproxy::WindowProxy', 'path': 'crate::dom::windowproxy::WindowProxy',
'register': False, 'register': False,
}, },
'Window': {
'inRealms': ['Fetch', 'GetOpener'],
'canGc': ['Stop'],
},
'WorkerGlobalScope': { 'WorkerGlobalScope': {
'inRealms': ['Fetch'], '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': { 'Worklet': {
'inRealms': ['AddModule'], 'inRealms': ['AddModule'],
}, },
'TestWorklet': { 'XMLHttpRequest': {
'inRealms': ['AddModule'], 'canGc': ['GetResponseXML', 'Response'],
}, },
'BluetoothDevice': { 'XRSession': {
'inRealms': ['WatchAdvertisements'], 'inRealms': ['RequestReferenceSpace', 'UpdateRenderState', 'UpdateTargetFrameRate'],
}, },
'XRSystem': { 'XRSystem': {
'inRealms': ['SupportsSessionMode', 'RequestSession'], 'inRealms': ['RequestSession', 'SupportsSessionMode'],
},
'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'],
}, },
} }