| // services/audio/public/mojom/system_info.mojom-lite.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2018 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| /** |
| * @fileoverview |
| * @suppress {missingRequire} |
| */ |
| 'use strict'; |
| |
| |
| mojo.internal.exportModule('audio.mojom'); |
| |
| |
| |
| |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| audio.mojom.SystemInfoPendingReceiver = class { |
| /** |
| * @param {!MojoHandle|!mojo.internal.interfaceSupport.Endpoint} handle |
| */ |
| constructor(handle) { |
| /** @public {!mojo.internal.interfaceSupport.Endpoint} */ |
| this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle); |
| } |
| |
| /** @param {string=} scope */ |
| bindInBrowser(scope = 'context') { |
| mojo.internal.interfaceSupport.bind( |
| this.handle, |
| audio.mojom.SystemInfo.$interfaceName, |
| scope); |
| } |
| }; |
| |
| |
| |
| /** |
| * @export |
| * @implements { audio.mojom.SystemInfoInterface } |
| */ |
| audio.mojom.SystemInfoRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!audio.mojom.SystemInfoPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| audio.mojom.SystemInfoPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!audio.mojom.SystemInfoPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { !string } deviceId |
| * @return {!Promise<{ |
| params: ?media.mojom.AudioParameters, |
| * }>} |
| */ |
| |
| getInputStreamParameters( |
| deviceId) { |
| return this.proxy.sendMessage( |
| 0, |
| audio.mojom.SystemInfo_GetInputStreamParameters_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputStreamParameters_ResponseParamsSpec.$, |
| [ |
| deviceId |
| ]); |
| } |
| |
| |
| /** |
| * @param { !string } deviceId |
| * @return {!Promise<{ |
| params: ?media.mojom.AudioParameters, |
| * }>} |
| */ |
| |
| getOutputStreamParameters( |
| deviceId) { |
| return this.proxy.sendMessage( |
| 1, |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ResponseParamsSpec.$, |
| [ |
| deviceId |
| ]); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| hasInputDevices: !boolean, |
| * }>} |
| */ |
| |
| hasInputDevices() { |
| return this.proxy.sendMessage( |
| 2, |
| audio.mojom.SystemInfo_HasInputDevices_ParamsSpec.$, |
| audio.mojom.SystemInfo_HasInputDevices_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| hasOutputDevices: !boolean, |
| * }>} |
| */ |
| |
| hasOutputDevices() { |
| return this.proxy.sendMessage( |
| 3, |
| audio.mojom.SystemInfo_HasOutputDevices_ParamsSpec.$, |
| audio.mojom.SystemInfo_HasOutputDevices_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| deviceDescriptions: !Array<!audio.mojom.AudioDeviceDescription>, |
| * }>} |
| */ |
| |
| getInputDeviceDescriptions() { |
| return this.proxy.sendMessage( |
| 4, |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| deviceDescriptions: !Array<!audio.mojom.AudioDeviceDescription>, |
| * }>} |
| */ |
| |
| getOutputDeviceDescriptions() { |
| return this.proxy.sendMessage( |
| 5, |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| |
| |
| /** |
| * @param { !string } inputDeviceId |
| * @return {!Promise<{ |
| associatedOutputDeviceId: ?string, |
| * }>} |
| */ |
| |
| getAssociatedOutputDeviceID( |
| inputDeviceId) { |
| return this.proxy.sendMessage( |
| 6, |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ResponseParamsSpec.$, |
| [ |
| inputDeviceId |
| ]); |
| } |
| |
| |
| /** |
| * @param { !string } inputDeviceId |
| * @return {!Promise<{ |
| inputParams: ?media.mojom.AudioParameters, |
| associatedOutputDeviceId: ?string, |
| * }>} |
| */ |
| |
| getInputDeviceInfo( |
| inputDeviceId) { |
| return this.proxy.sendMessage( |
| 7, |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ResponseParamsSpec.$, |
| [ |
| inputDeviceId |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the SystemInfo |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| audio.mojom.SystemInfoReceiver = class { |
| /** |
| * @param {!audio.mojom.SystemInfoInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!audio.mojom.SystemInfoRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| audio.mojom.SystemInfoRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!audio.mojom.SystemInfoRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| audio.mojom.SystemInfo_GetInputStreamParameters_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputStreamParameters_ResponseParamsSpec.$, |
| impl.getInputStreamParameters.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1, |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ResponseParamsSpec.$, |
| impl.getOutputStreamParameters.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 2, |
| audio.mojom.SystemInfo_HasInputDevices_ParamsSpec.$, |
| audio.mojom.SystemInfo_HasInputDevices_ResponseParamsSpec.$, |
| impl.hasInputDevices.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 3, |
| audio.mojom.SystemInfo_HasOutputDevices_ParamsSpec.$, |
| audio.mojom.SystemInfo_HasOutputDevices_ResponseParamsSpec.$, |
| impl.hasOutputDevices.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 4, |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ResponseParamsSpec.$, |
| impl.getInputDeviceDescriptions.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 5, |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ResponseParamsSpec.$, |
| impl.getOutputDeviceDescriptions.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 6, |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ResponseParamsSpec.$, |
| impl.getAssociatedOutputDeviceID.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 7, |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ResponseParamsSpec.$, |
| impl.getInputDeviceInfo.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| audio.mojom.SystemInfo = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "audio.mojom.SystemInfo"; |
| } |
| |
| /** |
| * Returns a remote for this interface which sends messages to the browser. |
| * The browser must have an interface request binder registered for this |
| * interface and accessible to the calling document's frame. |
| * |
| * @return {!audio.mojom.SystemInfoRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new audio.mojom.SystemInfoRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the SystemInfo |
| * mojom interface and dispatches them as callbacks. One callback receiver exists |
| * on this object for each message defined in the mojom interface, and each |
| * receiver can have any number of listeners added to it. |
| * |
| * @export |
| */ |
| audio.mojom.SystemInfoCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| audio.mojom.SystemInfoRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!audio.mojom.SystemInfoRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getInputStreamParameters = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| audio.mojom.SystemInfo_GetInputStreamParameters_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputStreamParameters_ResponseParamsSpec.$, |
| this.getInputStreamParameters.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getOutputStreamParameters = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1, |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ResponseParamsSpec.$, |
| this.getOutputStreamParameters.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.hasInputDevices = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 2, |
| audio.mojom.SystemInfo_HasInputDevices_ParamsSpec.$, |
| audio.mojom.SystemInfo_HasInputDevices_ResponseParamsSpec.$, |
| this.hasInputDevices.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.hasOutputDevices = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 3, |
| audio.mojom.SystemInfo_HasOutputDevices_ParamsSpec.$, |
| audio.mojom.SystemInfo_HasOutputDevices_ResponseParamsSpec.$, |
| this.hasOutputDevices.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getInputDeviceDescriptions = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 4, |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ResponseParamsSpec.$, |
| this.getInputDeviceDescriptions.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getOutputDeviceDescriptions = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 5, |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ResponseParamsSpec.$, |
| this.getOutputDeviceDescriptions.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getAssociatedOutputDeviceID = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 6, |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ResponseParamsSpec.$, |
| this.getAssociatedOutputDeviceID.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getInputDeviceInfo = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 7, |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ParamsSpec.$, |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ResponseParamsSpec.$, |
| this.getInputDeviceInfo.createReceiverHandler(true /* expectsResponse */)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| |
| /** |
| * @param {number} id An ID returned by a prior call to addListener. |
| * @return {boolean} True iff the identified listener was found and removed. |
| * @export |
| */ |
| removeListener(id) { |
| return this.router_.removeListener(id); |
| } |
| }; |
| |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetInputStreamParameters_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetInputStreamParameters_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_HasInputDevices_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_HasInputDevices_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_HasOutputDevices_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_HasOutputDevices_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetInputStreamParameters_ParamsSpec.$, |
| 'SystemInfo_GetInputStreamParameters_Params', |
| [ |
| mojo.internal.StructField( |
| 'deviceId', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetInputStreamParameters_Params = class { |
| constructor() { |
| /** @export { !string } */ |
| this.deviceId; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetInputStreamParameters_ResponseParamsSpec.$, |
| 'SystemInfo_GetInputStreamParameters_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'params', 0, |
| 0, |
| media.mojom.AudioParametersSpec.$, |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetInputStreamParameters_ResponseParams = class { |
| constructor() { |
| /** @export { (media.mojom.AudioParameters|undefined) } */ |
| this.params; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ParamsSpec.$, |
| 'SystemInfo_GetOutputStreamParameters_Params', |
| [ |
| mojo.internal.StructField( |
| 'deviceId', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetOutputStreamParameters_Params = class { |
| constructor() { |
| /** @export { !string } */ |
| this.deviceId; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ResponseParamsSpec.$, |
| 'SystemInfo_GetOutputStreamParameters_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'params', 0, |
| 0, |
| media.mojom.AudioParametersSpec.$, |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetOutputStreamParameters_ResponseParams = class { |
| constructor() { |
| /** @export { (media.mojom.AudioParameters|undefined) } */ |
| this.params; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_HasInputDevices_ParamsSpec.$, |
| 'SystemInfo_HasInputDevices_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_HasInputDevices_Params = class { |
| constructor() { |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_HasInputDevices_ResponseParamsSpec.$, |
| 'SystemInfo_HasInputDevices_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'hasInputDevices', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_HasInputDevices_ResponseParams = class { |
| constructor() { |
| /** @export { !boolean } */ |
| this.hasInputDevices; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_HasOutputDevices_ParamsSpec.$, |
| 'SystemInfo_HasOutputDevices_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_HasOutputDevices_Params = class { |
| constructor() { |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_HasOutputDevices_ResponseParamsSpec.$, |
| 'SystemInfo_HasOutputDevices_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'hasOutputDevices', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_HasOutputDevices_ResponseParams = class { |
| constructor() { |
| /** @export { !boolean } */ |
| this.hasOutputDevices; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ParamsSpec.$, |
| 'SystemInfo_GetInputDeviceDescriptions_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_Params = class { |
| constructor() { |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ResponseParamsSpec.$, |
| 'SystemInfo_GetInputDeviceDescriptions_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'deviceDescriptions', 0, |
| 0, |
| mojo.internal.Array(audio.mojom.AudioDeviceDescriptionSpec.$, false), |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetInputDeviceDescriptions_ResponseParams = class { |
| constructor() { |
| /** @export { !Array<!audio.mojom.AudioDeviceDescription> } */ |
| this.deviceDescriptions; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ParamsSpec.$, |
| 'SystemInfo_GetOutputDeviceDescriptions_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_Params = class { |
| constructor() { |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ResponseParamsSpec.$, |
| 'SystemInfo_GetOutputDeviceDescriptions_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'deviceDescriptions', 0, |
| 0, |
| mojo.internal.Array(audio.mojom.AudioDeviceDescriptionSpec.$, false), |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetOutputDeviceDescriptions_ResponseParams = class { |
| constructor() { |
| /** @export { !Array<!audio.mojom.AudioDeviceDescription> } */ |
| this.deviceDescriptions; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ParamsSpec.$, |
| 'SystemInfo_GetAssociatedOutputDeviceID_Params', |
| [ |
| mojo.internal.StructField( |
| 'inputDeviceId', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_Params = class { |
| constructor() { |
| /** @export { !string } */ |
| this.inputDeviceId; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ResponseParamsSpec.$, |
| 'SystemInfo_GetAssociatedOutputDeviceID_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'associatedOutputDeviceId', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetAssociatedOutputDeviceID_ResponseParams = class { |
| constructor() { |
| /** @export { (string|undefined) } */ |
| this.associatedOutputDeviceId; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ParamsSpec.$, |
| 'SystemInfo_GetInputDeviceInfo_Params', |
| [ |
| mojo.internal.StructField( |
| 'inputDeviceId', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetInputDeviceInfo_Params = class { |
| constructor() { |
| /** @export { !string } */ |
| this.inputDeviceId; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ResponseParamsSpec.$, |
| 'SystemInfo_GetInputDeviceInfo_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'inputParams', 0, |
| 0, |
| media.mojom.AudioParametersSpec.$, |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'associatedOutputDeviceId', 8, |
| 0, |
| mojo.internal.String, |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 24],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| audio.mojom.SystemInfo_GetInputDeviceInfo_ResponseParams = class { |
| constructor() { |
| /** @export { (media.mojom.AudioParameters|undefined) } */ |
| this.inputParams; |
| /** @export { (string|undefined) } */ |
| this.associatedOutputDeviceId; |
| } |
| }; |
| |