lib/selenium/devtools/v88/web_audio.rb in selenium-devtools-0.0.2.alpha vs lib/selenium/devtools/v88/web_audio.rb in selenium-devtools-0.89.0

- old
+ new

@@ -18,47 +18,49 @@ # under the License. # This file is automatically generated. Any changes will be lost! module Selenium module DevTools - class WebAudio - EVENTS = { - context_created: 'contextCreated', - context_will_be_destroyed: 'contextWillBeDestroyed', - context_changed: 'contextChanged', - audio_listener_created: 'audioListenerCreated', - audio_listener_will_be_destroyed: 'audioListenerWillBeDestroyed', - audio_node_created: 'audioNodeCreated', - audio_node_will_be_destroyed: 'audioNodeWillBeDestroyed', - audio_param_created: 'audioParamCreated', - audio_param_will_be_destroyed: 'audioParamWillBeDestroyed', - nodes_connected: 'nodesConnected', - nodes_disconnected: 'nodesDisconnected', - node_param_connected: 'nodeParamConnected', - node_param_disconnected: 'nodeParamDisconnected', - }.freeze + module V88 + class WebAudio + EVENTS = { + context_created: 'contextCreated', + context_will_be_destroyed: 'contextWillBeDestroyed', + context_changed: 'contextChanged', + audio_listener_created: 'audioListenerCreated', + audio_listener_will_be_destroyed: 'audioListenerWillBeDestroyed', + audio_node_created: 'audioNodeCreated', + audio_node_will_be_destroyed: 'audioNodeWillBeDestroyed', + audio_param_created: 'audioParamCreated', + audio_param_will_be_destroyed: 'audioParamWillBeDestroyed', + nodes_connected: 'nodesConnected', + nodes_disconnected: 'nodesDisconnected', + node_param_connected: 'nodeParamConnected', + node_param_disconnected: 'nodeParamDisconnected', + }.freeze - def initialize(devtools) - @devtools = devtools - end + def initialize(devtools) + @devtools = devtools + end - def on(event, &block) - event = EVENTS[event] if event.is_a?(Symbol) - @devtools.callbacks["WebAudio.#{event}"] << block - end + def on(event, &block) + event = EVENTS[event] if event.is_a?(Symbol) + @devtools.callbacks["WebAudio.#{event}"] << block + end - def enable - @devtools.send_cmd('WebAudio.enable') - end + def enable + @devtools.send_cmd('WebAudio.enable') + end - def disable - @devtools.send_cmd('WebAudio.disable') - end + def disable + @devtools.send_cmd('WebAudio.disable') + end - def get_realtime_data(context_id:) - @devtools.send_cmd('WebAudio.getRealtimeData', - contextId: context_id) - end + def get_realtime_data(context_id:) + @devtools.send_cmd('WebAudio.getRealtimeData', + contextId: context_id) + end - end # WebAudio + end # WebAudio + end # V88 end # DevTools end # Selenium \ No newline at end of file