| // mojo/public/cpp/bindings/tests/feature_unittest.test-mojom.m.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2020 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| import {mojo} from '../../../js/bindings.js'; |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| */ |
| export class DefaultDeniedPendingReceiver { |
| /** |
| * @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, 'mojo.test.feature_unittest.mojom.DefaultDenied', scope); |
| } |
| } |
| |
| /** @interface */ |
| export class DefaultDeniedInterface { |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| getInt() {} |
| } |
| |
| /** |
| * @implements { DefaultDeniedInterface } |
| */ |
| export class DefaultDeniedRemote { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!DefaultDeniedPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| DefaultDeniedPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!DefaultDeniedPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| getInt() { |
| return this.proxy.sendMessage( |
| 0, |
| DefaultDenied_GetInt_ParamsSpec.$, |
| DefaultDenied_GetInt_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| } |
| |
| /** |
| * An object which receives request messages for the DefaultDenied |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| */ |
| export class DefaultDeniedReceiver { |
| /** |
| * @param {!DefaultDeniedInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!DefaultDeniedRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| DefaultDeniedRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!DefaultDeniedRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| DefaultDenied_GetInt_ParamsSpec.$, |
| DefaultDenied_GetInt_ResponseParamsSpec.$, |
| impl.getInt.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| } |
| |
| export class DefaultDenied { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "mojo.test.feature_unittest.mojom.DefaultDenied"; |
| } |
| |
| /** |
| * 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 {!DefaultDeniedRemote} |
| */ |
| static getRemote() { |
| let remote = new DefaultDeniedRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| } |
| |
| |
| /** |
| * An object which receives request messages for the DefaultDenied |
| * 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 class DefaultDeniedCallbackRouter { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| DefaultDeniedRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!DefaultDeniedRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getInt = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| DefaultDenied_GetInt_ParamsSpec.$, |
| DefaultDenied_GetInt_ResponseParamsSpec.$, |
| this.getInt.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. |
| */ |
| removeListener(id) { |
| return this.router_.removeListener(id); |
| } |
| } |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| */ |
| export class DefaultAllowedPendingReceiver { |
| /** |
| * @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, 'mojo.test.feature_unittest.mojom.DefaultAllowed', scope); |
| } |
| } |
| |
| /** @interface */ |
| export class DefaultAllowedInterface { |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| getInt() {} |
| } |
| |
| /** |
| * @implements { DefaultAllowedInterface } |
| */ |
| export class DefaultAllowedRemote { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!DefaultAllowedPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| DefaultAllowedPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!DefaultAllowedPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| getInt() { |
| return this.proxy.sendMessage( |
| 0, |
| DefaultAllowed_GetInt_ParamsSpec.$, |
| DefaultAllowed_GetInt_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| } |
| |
| /** |
| * An object which receives request messages for the DefaultAllowed |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| */ |
| export class DefaultAllowedReceiver { |
| /** |
| * @param {!DefaultAllowedInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!DefaultAllowedRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| DefaultAllowedRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!DefaultAllowedRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| DefaultAllowed_GetInt_ParamsSpec.$, |
| DefaultAllowed_GetInt_ResponseParamsSpec.$, |
| impl.getInt.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| } |
| |
| export class DefaultAllowed { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "mojo.test.feature_unittest.mojom.DefaultAllowed"; |
| } |
| |
| /** |
| * 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 {!DefaultAllowedRemote} |
| */ |
| static getRemote() { |
| let remote = new DefaultAllowedRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| } |
| |
| |
| /** |
| * An object which receives request messages for the DefaultAllowed |
| * 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 class DefaultAllowedCallbackRouter { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| DefaultAllowedRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!DefaultAllowedRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getInt = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| DefaultAllowed_GetInt_ParamsSpec.$, |
| DefaultAllowed_GetInt_ResponseParamsSpec.$, |
| this.getInt.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. |
| */ |
| removeListener(id) { |
| return this.router_.removeListener(id); |
| } |
| } |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| */ |
| export class OtherDeniedPendingReceiver { |
| /** |
| * @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, 'mojo.test.feature_unittest.mojom.OtherDenied', scope); |
| } |
| } |
| |
| /** @interface */ |
| export class OtherDeniedInterface { |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| getInt() {} |
| } |
| |
| /** |
| * @implements { OtherDeniedInterface } |
| */ |
| export class OtherDeniedRemote { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!OtherDeniedPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| OtherDeniedPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!OtherDeniedPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| getInt() { |
| return this.proxy.sendMessage( |
| 0, |
| OtherDenied_GetInt_ParamsSpec.$, |
| OtherDenied_GetInt_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| } |
| |
| /** |
| * An object which receives request messages for the OtherDenied |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| */ |
| export class OtherDeniedReceiver { |
| /** |
| * @param {!OtherDeniedInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!OtherDeniedRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| OtherDeniedRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!OtherDeniedRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| OtherDenied_GetInt_ParamsSpec.$, |
| OtherDenied_GetInt_ResponseParamsSpec.$, |
| impl.getInt.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| } |
| |
| export class OtherDenied { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "mojo.test.feature_unittest.mojom.OtherDenied"; |
| } |
| |
| /** |
| * 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 {!OtherDeniedRemote} |
| */ |
| static getRemote() { |
| let remote = new OtherDeniedRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| } |
| |
| |
| /** |
| * An object which receives request messages for the OtherDenied |
| * 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 class OtherDeniedCallbackRouter { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| OtherDeniedRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!OtherDeniedRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getInt = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| OtherDenied_GetInt_ParamsSpec.$, |
| OtherDenied_GetInt_ResponseParamsSpec.$, |
| this.getInt.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. |
| */ |
| removeListener(id) { |
| return this.router_.removeListener(id); |
| } |
| } |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| */ |
| export class OtherAllowedPendingReceiver { |
| /** |
| * @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, 'mojo.test.feature_unittest.mojom.OtherAllowed', scope); |
| } |
| } |
| |
| /** @interface */ |
| export class OtherAllowedInterface { |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| getInt() {} |
| } |
| |
| /** |
| * @implements { OtherAllowedInterface } |
| */ |
| export class OtherAllowedRemote { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!OtherAllowedPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| OtherAllowedPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!OtherAllowedPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| getInt() { |
| return this.proxy.sendMessage( |
| 0, |
| OtherAllowed_GetInt_ParamsSpec.$, |
| OtherAllowed_GetInt_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| } |
| |
| /** |
| * An object which receives request messages for the OtherAllowed |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| */ |
| export class OtherAllowedReceiver { |
| /** |
| * @param {!OtherAllowedInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!OtherAllowedRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| OtherAllowedRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!OtherAllowedRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| OtherAllowed_GetInt_ParamsSpec.$, |
| OtherAllowed_GetInt_ResponseParamsSpec.$, |
| impl.getInt.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| } |
| |
| export class OtherAllowed { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "mojo.test.feature_unittest.mojom.OtherAllowed"; |
| } |
| |
| /** |
| * 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 {!OtherAllowedRemote} |
| */ |
| static getRemote() { |
| let remote = new OtherAllowedRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| } |
| |
| |
| /** |
| * An object which receives request messages for the OtherAllowed |
| * 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 class OtherAllowedCallbackRouter { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| OtherAllowedRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!OtherAllowedRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getInt = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| OtherAllowed_GetInt_ParamsSpec.$, |
| OtherAllowed_GetInt_ResponseParamsSpec.$, |
| this.getInt.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. |
| */ |
| removeListener(id) { |
| return this.router_.removeListener(id); |
| } |
| } |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| */ |
| export class FeaturesOnMethodsPendingReceiver { |
| /** |
| * @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, 'mojo.test.feature_unittest.mojom.FeaturesOnMethods', scope); |
| } |
| } |
| |
| /** @interface */ |
| export class FeaturesOnMethodsInterface { |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| defaultDenied() {} |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| defaultDeniedSync() {} |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| defaultAllowed() {} |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| normal() {} |
| } |
| |
| /** |
| * @implements { FeaturesOnMethodsInterface } |
| */ |
| export class FeaturesOnMethodsRemote { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!FeaturesOnMethodsPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| FeaturesOnMethodsPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!FeaturesOnMethodsPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| defaultDenied() { |
| return this.proxy.sendMessage( |
| 0, |
| FeaturesOnMethods_DefaultDenied_ParamsSpec.$, |
| FeaturesOnMethods_DefaultDenied_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| defaultDeniedSync() { |
| return this.proxy.sendMessage( |
| 1, |
| FeaturesOnMethods_DefaultDeniedSync_ParamsSpec.$, |
| FeaturesOnMethods_DefaultDeniedSync_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| defaultAllowed() { |
| return this.proxy.sendMessage( |
| 2, |
| FeaturesOnMethods_DefaultAllowed_ParamsSpec.$, |
| FeaturesOnMethods_DefaultAllowed_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| ret: !number, |
| * }>} |
| */ |
| |
| normal() { |
| return this.proxy.sendMessage( |
| 3, |
| FeaturesOnMethods_Normal_ParamsSpec.$, |
| FeaturesOnMethods_Normal_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| } |
| |
| /** |
| * An object which receives request messages for the FeaturesOnMethods |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| */ |
| export class FeaturesOnMethodsReceiver { |
| /** |
| * @param {!FeaturesOnMethodsInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!FeaturesOnMethodsRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| FeaturesOnMethodsRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!FeaturesOnMethodsRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| FeaturesOnMethods_DefaultDenied_ParamsSpec.$, |
| FeaturesOnMethods_DefaultDenied_ResponseParamsSpec.$, |
| impl.defaultDenied.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1, |
| FeaturesOnMethods_DefaultDeniedSync_ParamsSpec.$, |
| FeaturesOnMethods_DefaultDeniedSync_ResponseParamsSpec.$, |
| impl.defaultDeniedSync.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 2, |
| FeaturesOnMethods_DefaultAllowed_ParamsSpec.$, |
| FeaturesOnMethods_DefaultAllowed_ResponseParamsSpec.$, |
| impl.defaultAllowed.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 3, |
| FeaturesOnMethods_Normal_ParamsSpec.$, |
| FeaturesOnMethods_Normal_ResponseParamsSpec.$, |
| impl.normal.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| } |
| |
| export class FeaturesOnMethods { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "mojo.test.feature_unittest.mojom.FeaturesOnMethods"; |
| } |
| |
| /** |
| * 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 {!FeaturesOnMethodsRemote} |
| */ |
| static getRemote() { |
| let remote = new FeaturesOnMethodsRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| } |
| |
| |
| /** |
| * An object which receives request messages for the FeaturesOnMethods |
| * 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 class FeaturesOnMethodsCallbackRouter { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| FeaturesOnMethodsRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!FeaturesOnMethodsRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.defaultDenied = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| FeaturesOnMethods_DefaultDenied_ParamsSpec.$, |
| FeaturesOnMethods_DefaultDenied_ResponseParamsSpec.$, |
| this.defaultDenied.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.defaultDeniedSync = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1, |
| FeaturesOnMethods_DefaultDeniedSync_ParamsSpec.$, |
| FeaturesOnMethods_DefaultDeniedSync_ResponseParamsSpec.$, |
| this.defaultDeniedSync.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.defaultAllowed = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 2, |
| FeaturesOnMethods_DefaultAllowed_ParamsSpec.$, |
| FeaturesOnMethods_DefaultAllowed_ResponseParamsSpec.$, |
| this.defaultAllowed.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.normal = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 3, |
| FeaturesOnMethods_Normal_ParamsSpec.$, |
| FeaturesOnMethods_Normal_ResponseParamsSpec.$, |
| this.normal.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. |
| */ |
| removeListener(id) { |
| return this.router_.removeListener(id); |
| } |
| } |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| */ |
| export class PassesInterfacesPendingReceiver { |
| /** |
| * @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, 'mojo.test.feature_unittest.mojom.PassesInterfaces', scope); |
| } |
| } |
| |
| /** @interface */ |
| export class PassesInterfacesInterface { |
| |
| /** |
| * @param { ?DefaultAllowedRemote } iface |
| * @return {!Promise<{ |
| ok: !boolean, |
| * }>} |
| */ |
| |
| passPendingOptionalRemoteAllowed(iface) {} |
| |
| /** |
| * @param { ?DefaultAllowedPendingReceiver } iface |
| */ |
| |
| passPendingOptionalReceiverAllowed(iface) {} |
| |
| /** |
| * @param { ?DefaultDeniedRemote } iface |
| * @return {!Promise<{ |
| ok: !boolean, |
| * }>} |
| */ |
| |
| passPendingOptionalRemoteDisabled(iface) {} |
| |
| /** |
| * @param { ?DefaultDeniedPendingReceiver } iface |
| * @return {!Promise<{ |
| ok: !boolean, |
| * }>} |
| */ |
| |
| passPendingOptionalReceiverDisabled(iface) {} |
| } |
| |
| /** |
| * @implements { PassesInterfacesInterface } |
| */ |
| export class PassesInterfacesRemote { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!PassesInterfacesPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| PassesInterfacesPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!PassesInterfacesPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { ?DefaultAllowedRemote } iface |
| * @return {!Promise<{ |
| ok: !boolean, |
| * }>} |
| */ |
| |
| passPendingOptionalRemoteAllowed( |
| iface) { |
| return this.proxy.sendMessage( |
| 0, |
| PassesInterfaces_PassPendingOptionalRemoteAllowed_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalRemoteAllowed_ResponseParamsSpec.$, |
| [ |
| iface |
| ]); |
| } |
| |
| |
| /** |
| * @param { ?DefaultAllowedPendingReceiver } iface |
| */ |
| |
| passPendingOptionalReceiverAllowed( |
| iface) { |
| this.proxy.sendMessage( |
| 1, |
| PassesInterfaces_PassPendingOptionalReceiverAllowed_ParamsSpec.$, |
| null, |
| [ |
| iface |
| ]); |
| } |
| |
| |
| /** |
| * @param { ?DefaultDeniedRemote } iface |
| * @return {!Promise<{ |
| ok: !boolean, |
| * }>} |
| */ |
| |
| passPendingOptionalRemoteDisabled( |
| iface) { |
| return this.proxy.sendMessage( |
| 2, |
| PassesInterfaces_PassPendingOptionalRemoteDisabled_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalRemoteDisabled_ResponseParamsSpec.$, |
| [ |
| iface |
| ]); |
| } |
| |
| |
| /** |
| * @param { ?DefaultDeniedPendingReceiver } iface |
| * @return {!Promise<{ |
| ok: !boolean, |
| * }>} |
| */ |
| |
| passPendingOptionalReceiverDisabled( |
| iface) { |
| return this.proxy.sendMessage( |
| 3, |
| PassesInterfaces_PassPendingOptionalReceiverDisabled_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalReceiverDisabled_ResponseParamsSpec.$, |
| [ |
| iface |
| ]); |
| } |
| } |
| |
| /** |
| * An object which receives request messages for the PassesInterfaces |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| */ |
| export class PassesInterfacesReceiver { |
| /** |
| * @param {!PassesInterfacesInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!PassesInterfacesRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| PassesInterfacesRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!PassesInterfacesRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| PassesInterfaces_PassPendingOptionalRemoteAllowed_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalRemoteAllowed_ResponseParamsSpec.$, |
| impl.passPendingOptionalRemoteAllowed.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1, |
| PassesInterfaces_PassPendingOptionalReceiverAllowed_ParamsSpec.$, |
| null, |
| impl.passPendingOptionalReceiverAllowed.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 2, |
| PassesInterfaces_PassPendingOptionalRemoteDisabled_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalRemoteDisabled_ResponseParamsSpec.$, |
| impl.passPendingOptionalRemoteDisabled.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 3, |
| PassesInterfaces_PassPendingOptionalReceiverDisabled_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalReceiverDisabled_ResponseParamsSpec.$, |
| impl.passPendingOptionalReceiverDisabled.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| } |
| |
| export class PassesInterfaces { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "mojo.test.feature_unittest.mojom.PassesInterfaces"; |
| } |
| |
| /** |
| * 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 {!PassesInterfacesRemote} |
| */ |
| static getRemote() { |
| let remote = new PassesInterfacesRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| } |
| |
| |
| /** |
| * An object which receives request messages for the PassesInterfaces |
| * 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 class PassesInterfacesCallbackRouter { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| PassesInterfacesRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!PassesInterfacesRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.passPendingOptionalRemoteAllowed = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| PassesInterfaces_PassPendingOptionalRemoteAllowed_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalRemoteAllowed_ResponseParamsSpec.$, |
| this.passPendingOptionalRemoteAllowed.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.passPendingOptionalReceiverAllowed = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1, |
| PassesInterfaces_PassPendingOptionalReceiverAllowed_ParamsSpec.$, |
| null, |
| this.passPendingOptionalReceiverAllowed.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.passPendingOptionalRemoteDisabled = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 2, |
| PassesInterfaces_PassPendingOptionalRemoteDisabled_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalRemoteDisabled_ResponseParamsSpec.$, |
| this.passPendingOptionalRemoteDisabled.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.passPendingOptionalReceiverDisabled = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 3, |
| PassesInterfaces_PassPendingOptionalReceiverDisabled_ParamsSpec.$, |
| PassesInterfaces_PassPendingOptionalReceiverDisabled_ResponseParamsSpec.$, |
| this.passPendingOptionalReceiverDisabled.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. |
| */ |
| removeListener(id) { |
| return this.router_.removeListener(id); |
| } |
| } |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const DefaultDenied_GetInt_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const DefaultDenied_GetInt_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const DefaultAllowed_GetInt_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const DefaultAllowed_GetInt_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const OtherDenied_GetInt_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const OtherDenied_GetInt_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const OtherAllowed_GetInt_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const OtherAllowed_GetInt_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const FeaturesOnMethods_DefaultDenied_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const FeaturesOnMethods_DefaultDenied_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const FeaturesOnMethods_DefaultDeniedSync_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const FeaturesOnMethods_DefaultDeniedSync_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const FeaturesOnMethods_DefaultAllowed_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const FeaturesOnMethods_DefaultAllowed_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const FeaturesOnMethods_Normal_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const FeaturesOnMethods_Normal_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const PassesInterfaces_PassPendingOptionalRemoteAllowed_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const PassesInterfaces_PassPendingOptionalRemoteAllowed_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const PassesInterfaces_PassPendingOptionalReceiverAllowed_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const PassesInterfaces_PassPendingOptionalRemoteDisabled_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const PassesInterfaces_PassPendingOptionalRemoteDisabled_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const PassesInterfaces_PassPendingOptionalReceiverDisabled_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const PassesInterfaces_PassPendingOptionalReceiverDisabled_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| DefaultDenied_GetInt_ParamsSpec.$, |
| 'DefaultDenied_GetInt_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class DefaultDenied_GetInt_Params { |
| constructor() { |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| DefaultDenied_GetInt_ResponseParamsSpec.$, |
| 'DefaultDenied_GetInt_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ret', 0, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class DefaultDenied_GetInt_ResponseParams { |
| constructor() { |
| /** @type { !number } */ |
| this.ret; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| DefaultAllowed_GetInt_ParamsSpec.$, |
| 'DefaultAllowed_GetInt_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class DefaultAllowed_GetInt_Params { |
| constructor() { |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| DefaultAllowed_GetInt_ResponseParamsSpec.$, |
| 'DefaultAllowed_GetInt_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ret', 0, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class DefaultAllowed_GetInt_ResponseParams { |
| constructor() { |
| /** @type { !number } */ |
| this.ret; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| OtherDenied_GetInt_ParamsSpec.$, |
| 'OtherDenied_GetInt_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class OtherDenied_GetInt_Params { |
| constructor() { |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| OtherDenied_GetInt_ResponseParamsSpec.$, |
| 'OtherDenied_GetInt_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ret', 0, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class OtherDenied_GetInt_ResponseParams { |
| constructor() { |
| /** @type { !number } */ |
| this.ret; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| OtherAllowed_GetInt_ParamsSpec.$, |
| 'OtherAllowed_GetInt_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class OtherAllowed_GetInt_Params { |
| constructor() { |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| OtherAllowed_GetInt_ResponseParamsSpec.$, |
| 'OtherAllowed_GetInt_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ret', 0, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class OtherAllowed_GetInt_ResponseParams { |
| constructor() { |
| /** @type { !number } */ |
| this.ret; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| FeaturesOnMethods_DefaultDenied_ParamsSpec.$, |
| 'FeaturesOnMethods_DefaultDenied_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class FeaturesOnMethods_DefaultDenied_Params { |
| constructor() { |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| FeaturesOnMethods_DefaultDenied_ResponseParamsSpec.$, |
| 'FeaturesOnMethods_DefaultDenied_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ret', 0, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class FeaturesOnMethods_DefaultDenied_ResponseParams { |
| constructor() { |
| /** @type { !number } */ |
| this.ret; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| FeaturesOnMethods_DefaultDeniedSync_ParamsSpec.$, |
| 'FeaturesOnMethods_DefaultDeniedSync_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class FeaturesOnMethods_DefaultDeniedSync_Params { |
| constructor() { |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| FeaturesOnMethods_DefaultDeniedSync_ResponseParamsSpec.$, |
| 'FeaturesOnMethods_DefaultDeniedSync_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ret', 0, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class FeaturesOnMethods_DefaultDeniedSync_ResponseParams { |
| constructor() { |
| /** @type { !number } */ |
| this.ret; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| FeaturesOnMethods_DefaultAllowed_ParamsSpec.$, |
| 'FeaturesOnMethods_DefaultAllowed_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class FeaturesOnMethods_DefaultAllowed_Params { |
| constructor() { |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| FeaturesOnMethods_DefaultAllowed_ResponseParamsSpec.$, |
| 'FeaturesOnMethods_DefaultAllowed_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ret', 0, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class FeaturesOnMethods_DefaultAllowed_ResponseParams { |
| constructor() { |
| /** @type { !number } */ |
| this.ret; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| FeaturesOnMethods_Normal_ParamsSpec.$, |
| 'FeaturesOnMethods_Normal_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class FeaturesOnMethods_Normal_Params { |
| constructor() { |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| FeaturesOnMethods_Normal_ResponseParamsSpec.$, |
| 'FeaturesOnMethods_Normal_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ret', 0, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class FeaturesOnMethods_Normal_ResponseParams { |
| constructor() { |
| /** @type { !number } */ |
| this.ret; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| PassesInterfaces_PassPendingOptionalRemoteAllowed_ParamsSpec.$, |
| 'PassesInterfaces_PassPendingOptionalRemoteAllowed_Params', |
| [ |
| mojo.internal.StructField( |
| 'iface', 0, |
| 0, |
| mojo.internal.InterfaceProxy(DefaultAllowedRemote), |
| null, |
| true /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class PassesInterfaces_PassPendingOptionalRemoteAllowed_Params { |
| constructor() { |
| /** @type { (DefaultAllowedRemote|undefined) } */ |
| this.iface; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| PassesInterfaces_PassPendingOptionalRemoteAllowed_ResponseParamsSpec.$, |
| 'PassesInterfaces_PassPendingOptionalRemoteAllowed_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ok', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class PassesInterfaces_PassPendingOptionalRemoteAllowed_ResponseParams { |
| constructor() { |
| /** @type { !boolean } */ |
| this.ok; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| PassesInterfaces_PassPendingOptionalReceiverAllowed_ParamsSpec.$, |
| 'PassesInterfaces_PassPendingOptionalReceiverAllowed_Params', |
| [ |
| mojo.internal.StructField( |
| 'iface', 0, |
| 0, |
| mojo.internal.InterfaceRequest(DefaultAllowedPendingReceiver), |
| null, |
| true /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class PassesInterfaces_PassPendingOptionalReceiverAllowed_Params { |
| constructor() { |
| /** @type { (DefaultAllowedPendingReceiver|undefined) } */ |
| this.iface; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| PassesInterfaces_PassPendingOptionalRemoteDisabled_ParamsSpec.$, |
| 'PassesInterfaces_PassPendingOptionalRemoteDisabled_Params', |
| [ |
| mojo.internal.StructField( |
| 'iface', 0, |
| 0, |
| mojo.internal.InterfaceProxy(DefaultDeniedRemote), |
| null, |
| true /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class PassesInterfaces_PassPendingOptionalRemoteDisabled_Params { |
| constructor() { |
| /** @type { (DefaultDeniedRemote|undefined) } */ |
| this.iface; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| PassesInterfaces_PassPendingOptionalRemoteDisabled_ResponseParamsSpec.$, |
| 'PassesInterfaces_PassPendingOptionalRemoteDisabled_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ok', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class PassesInterfaces_PassPendingOptionalRemoteDisabled_ResponseParams { |
| constructor() { |
| /** @type { !boolean } */ |
| this.ok; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| PassesInterfaces_PassPendingOptionalReceiverDisabled_ParamsSpec.$, |
| 'PassesInterfaces_PassPendingOptionalReceiverDisabled_Params', |
| [ |
| mojo.internal.StructField( |
| 'iface', 0, |
| 0, |
| mojo.internal.InterfaceRequest(DefaultDeniedPendingReceiver), |
| null, |
| true /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class PassesInterfaces_PassPendingOptionalReceiverDisabled_Params { |
| constructor() { |
| /** @type { (DefaultDeniedPendingReceiver|undefined) } */ |
| this.iface; |
| } |
| } |
| |
| |
| |
| mojo.internal.Struct( |
| PassesInterfaces_PassPendingOptionalReceiverDisabled_ResponseParamsSpec.$, |
| 'PassesInterfaces_PassPendingOptionalReceiverDisabled_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'ok', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */, |
| 0, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class PassesInterfaces_PassPendingOptionalReceiverDisabled_ResponseParams { |
| constructor() { |
| /** @type { !boolean } */ |
| this.ok; |
| } |
| } |
| |