| // services/viz/privileged/mojom/compositing/display_private.mojom-lite-for-compile.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| 'use strict'; |
| |
| goog.require('mojo.internal'); |
| goog.require('mojo.internal.interfaceSupport'); |
| |
| goog.require('viz.mojom.BeginFrameObserver'); |
| goog.require('gfx.mojom.DelegatedInkPointRenderer'); |
| goog.require('viz.mojom.VSyncParameterObserver'); |
| goog.require('gfx.mojom.DisplayColorSpaces'); |
| goog.require('gfx.mojom.Size'); |
| goog.require('mojoBase.mojom.TimeDelta'); |
| goog.require('mojoBase.mojom.TimeTicks'); |
| goog.require('gfx.mojom.Transform'); |
| |
| |
| |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate'); |
| goog.provide('viz.mojom.DisplayPrivateReceiver'); |
| goog.provide('viz.mojom.DisplayPrivateCallbackRouter'); |
| goog.provide('viz.mojom.DisplayPrivateInterface'); |
| goog.provide('viz.mojom.DisplayPrivateRemote'); |
| goog.provide('viz.mojom.DisplayPrivatePendingReceiver'); |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| viz.mojom.DisplayPrivatePendingReceiver = 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, |
| viz.mojom.DisplayPrivate.$interfaceName, |
| scope); |
| } |
| }; |
| |
| /** @interface */ |
| viz.mojom.DisplayPrivateInterface = class { |
| |
| /** |
| * @param { !boolean } visible |
| */ |
| |
| setDisplayVisible(visible) {} |
| |
| /** |
| * @param { !gfx.mojom.Size } size |
| */ |
| |
| resize(size) {} |
| |
| /** |
| * @param { !gfx.mojom.Transform } colorMatrix |
| */ |
| |
| setDisplayColorMatrix(colorMatrix) {} |
| |
| /** |
| * @param { !gfx.mojom.DisplayColorSpaces } displayColorSpaces |
| */ |
| |
| setDisplayColorSpaces(displayColorSpaces) {} |
| |
| /** |
| * @param { !boolean } secure |
| */ |
| |
| setOutputIsSecure(secure) {} |
| |
| /** |
| * @param { !mojoBase.mojom.TimeTicks } timebase |
| * @param { !mojoBase.mojom.TimeDelta } interval |
| */ |
| |
| setDisplayVSyncParameters(timebase, interval) {} |
| |
| /** |
| */ |
| |
| forceImmediateDrawAndSwapIfPossible() {} |
| |
| /** |
| * @param { !viz.mojom.VSyncParameterObserverRemote } observer |
| */ |
| |
| addVSyncParameterObserver(observer) {} |
| |
| /** |
| * @param { !gfx.mojom.DelegatedInkPointRendererPendingReceiver } receiver |
| */ |
| |
| setDelegatedInkPointRenderer(receiver) {} |
| |
| /** |
| * @param { !viz.mojom.BeginFrameObserverRemote } observer |
| */ |
| |
| setStandaloneBeginFrameObserver(observer) {} |
| }; |
| |
| /** |
| * @export |
| * @implements { viz.mojom.DisplayPrivateInterface } |
| */ |
| viz.mojom.DisplayPrivateRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!viz.mojom.DisplayPrivatePendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| viz.mojom.DisplayPrivatePendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!viz.mojom.DisplayPrivatePendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { !boolean } visible |
| */ |
| |
| setDisplayVisible( |
| visible) { |
| this.proxy.sendMessage( |
| 1152425165, |
| viz.mojom.DisplayPrivate_SetDisplayVisible_ParamsSpec.$, |
| null, |
| [ |
| visible |
| ]); |
| } |
| |
| |
| /** |
| * @param { !gfx.mojom.Size } size |
| */ |
| |
| resize( |
| size) { |
| this.proxy.sendMessage( |
| 1164571705, |
| viz.mojom.DisplayPrivate_Resize_ParamsSpec.$, |
| null, |
| [ |
| size |
| ]); |
| } |
| |
| |
| /** |
| * @param { !gfx.mojom.Transform } colorMatrix |
| */ |
| |
| setDisplayColorMatrix( |
| colorMatrix) { |
| this.proxy.sendMessage( |
| 806165305, |
| viz.mojom.DisplayPrivate_SetDisplayColorMatrix_ParamsSpec.$, |
| null, |
| [ |
| colorMatrix |
| ]); |
| } |
| |
| |
| /** |
| * @param { !gfx.mojom.DisplayColorSpaces } displayColorSpaces |
| */ |
| |
| setDisplayColorSpaces( |
| displayColorSpaces) { |
| this.proxy.sendMessage( |
| 1390489943, |
| viz.mojom.DisplayPrivate_SetDisplayColorSpaces_ParamsSpec.$, |
| null, |
| [ |
| displayColorSpaces |
| ]); |
| } |
| |
| |
| /** |
| * @param { !boolean } secure |
| */ |
| |
| setOutputIsSecure( |
| secure) { |
| this.proxy.sendMessage( |
| 1954256149, |
| viz.mojom.DisplayPrivate_SetOutputIsSecure_ParamsSpec.$, |
| null, |
| [ |
| secure |
| ]); |
| } |
| |
| |
| /** |
| * @param { !mojoBase.mojom.TimeTicks } timebase |
| * @param { !mojoBase.mojom.TimeDelta } interval |
| */ |
| |
| setDisplayVSyncParameters( |
| timebase, |
| interval) { |
| this.proxy.sendMessage( |
| 635325051, |
| viz.mojom.DisplayPrivate_SetDisplayVSyncParameters_ParamsSpec.$, |
| null, |
| [ |
| timebase, |
| interval |
| ]); |
| } |
| |
| |
| /** |
| */ |
| |
| forceImmediateDrawAndSwapIfPossible() { |
| this.proxy.sendMessage( |
| 40252913, |
| viz.mojom.DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_ParamsSpec.$, |
| null, |
| [ |
| ]); |
| } |
| |
| |
| /** |
| * @param { !viz.mojom.VSyncParameterObserverRemote } observer |
| */ |
| |
| addVSyncParameterObserver( |
| observer) { |
| this.proxy.sendMessage( |
| 1566623413, |
| viz.mojom.DisplayPrivate_AddVSyncParameterObserver_ParamsSpec.$, |
| null, |
| [ |
| observer |
| ]); |
| } |
| |
| |
| /** |
| * @param { !gfx.mojom.DelegatedInkPointRendererPendingReceiver } receiver |
| */ |
| |
| setDelegatedInkPointRenderer( |
| receiver) { |
| this.proxy.sendMessage( |
| 557564546, |
| viz.mojom.DisplayPrivate_SetDelegatedInkPointRenderer_ParamsSpec.$, |
| null, |
| [ |
| receiver |
| ]); |
| } |
| |
| |
| /** |
| * @param { !viz.mojom.BeginFrameObserverRemote } observer |
| */ |
| |
| setStandaloneBeginFrameObserver( |
| observer) { |
| this.proxy.sendMessage( |
| 750176545, |
| viz.mojom.DisplayPrivate_SetStandaloneBeginFrameObserver_ParamsSpec.$, |
| null, |
| [ |
| observer |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the DisplayPrivate |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| viz.mojom.DisplayPrivateReceiver = class { |
| /** |
| * @param {!viz.mojom.DisplayPrivateInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!viz.mojom.DisplayPrivateRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| viz.mojom.DisplayPrivateRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!viz.mojom.DisplayPrivateRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 1152425165, |
| viz.mojom.DisplayPrivate_SetDisplayVisible_ParamsSpec.$, |
| null, |
| impl.setDisplayVisible.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1164571705, |
| viz.mojom.DisplayPrivate_Resize_ParamsSpec.$, |
| null, |
| impl.resize.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 806165305, |
| viz.mojom.DisplayPrivate_SetDisplayColorMatrix_ParamsSpec.$, |
| null, |
| impl.setDisplayColorMatrix.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1390489943, |
| viz.mojom.DisplayPrivate_SetDisplayColorSpaces_ParamsSpec.$, |
| null, |
| impl.setDisplayColorSpaces.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1954256149, |
| viz.mojom.DisplayPrivate_SetOutputIsSecure_ParamsSpec.$, |
| null, |
| impl.setOutputIsSecure.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 635325051, |
| viz.mojom.DisplayPrivate_SetDisplayVSyncParameters_ParamsSpec.$, |
| null, |
| impl.setDisplayVSyncParameters.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 40252913, |
| viz.mojom.DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_ParamsSpec.$, |
| null, |
| impl.forceImmediateDrawAndSwapIfPossible.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1566623413, |
| viz.mojom.DisplayPrivate_AddVSyncParameterObserver_ParamsSpec.$, |
| null, |
| impl.addVSyncParameterObserver.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 557564546, |
| viz.mojom.DisplayPrivate_SetDelegatedInkPointRenderer_ParamsSpec.$, |
| null, |
| impl.setDelegatedInkPointRenderer.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 750176545, |
| viz.mojom.DisplayPrivate_SetStandaloneBeginFrameObserver_ParamsSpec.$, |
| null, |
| impl.setStandaloneBeginFrameObserver.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| viz.mojom.DisplayPrivate = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "viz.mojom.DisplayPrivate"; |
| } |
| |
| /** |
| * 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 {!viz.mojom.DisplayPrivateRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new viz.mojom.DisplayPrivateRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the DisplayPrivate |
| * 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 |
| */ |
| viz.mojom.DisplayPrivateCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| viz.mojom.DisplayPrivateRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!viz.mojom.DisplayPrivateRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setDisplayVisible = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1152425165, |
| viz.mojom.DisplayPrivate_SetDisplayVisible_ParamsSpec.$, |
| null, |
| this.setDisplayVisible.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.resize = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1164571705, |
| viz.mojom.DisplayPrivate_Resize_ParamsSpec.$, |
| null, |
| this.resize.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setDisplayColorMatrix = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 806165305, |
| viz.mojom.DisplayPrivate_SetDisplayColorMatrix_ParamsSpec.$, |
| null, |
| this.setDisplayColorMatrix.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setDisplayColorSpaces = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1390489943, |
| viz.mojom.DisplayPrivate_SetDisplayColorSpaces_ParamsSpec.$, |
| null, |
| this.setDisplayColorSpaces.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setOutputIsSecure = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1954256149, |
| viz.mojom.DisplayPrivate_SetOutputIsSecure_ParamsSpec.$, |
| null, |
| this.setOutputIsSecure.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setDisplayVSyncParameters = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 635325051, |
| viz.mojom.DisplayPrivate_SetDisplayVSyncParameters_ParamsSpec.$, |
| null, |
| this.setDisplayVSyncParameters.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.forceImmediateDrawAndSwapIfPossible = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 40252913, |
| viz.mojom.DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_ParamsSpec.$, |
| null, |
| this.forceImmediateDrawAndSwapIfPossible.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.addVSyncParameterObserver = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1566623413, |
| viz.mojom.DisplayPrivate_AddVSyncParameterObserver_ParamsSpec.$, |
| null, |
| this.addVSyncParameterObserver.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setDelegatedInkPointRenderer = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 557564546, |
| viz.mojom.DisplayPrivate_SetDelegatedInkPointRenderer_ParamsSpec.$, |
| null, |
| this.setDelegatedInkPointRenderer.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setStandaloneBeginFrameObserver = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 750176545, |
| viz.mojom.DisplayPrivate_SetStandaloneBeginFrameObserver_ParamsSpec.$, |
| null, |
| this.setStandaloneBeginFrameObserver.createReceiverHandler(false /* 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); |
| } |
| }; |
| |
| |
| goog.provide('viz.mojom.DisplayClient'); |
| goog.provide('viz.mojom.DisplayClientReceiver'); |
| goog.provide('viz.mojom.DisplayClientCallbackRouter'); |
| goog.provide('viz.mojom.DisplayClientInterface'); |
| goog.provide('viz.mojom.DisplayClientRemote'); |
| goog.provide('viz.mojom.DisplayClientPendingReceiver'); |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| viz.mojom.DisplayClientPendingReceiver = 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, |
| viz.mojom.DisplayClient.$interfaceName, |
| scope); |
| } |
| }; |
| |
| /** @interface */ |
| viz.mojom.DisplayClientInterface = class { |
| |
| /** |
| * @param { !gfx.mojom.Size } size |
| */ |
| |
| didCompleteSwapWithNewSize(size) {} |
| }; |
| |
| /** |
| * @export |
| * @implements { viz.mojom.DisplayClientInterface } |
| */ |
| viz.mojom.DisplayClientRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!viz.mojom.DisplayClientPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| viz.mojom.DisplayClientPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!viz.mojom.DisplayClientPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { !gfx.mojom.Size } size |
| */ |
| |
| didCompleteSwapWithNewSize( |
| size) { |
| this.proxy.sendMessage( |
| 70406846, |
| viz.mojom.DisplayClient_DidCompleteSwapWithNewSize_ParamsSpec.$, |
| null, |
| [ |
| size |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the DisplayClient |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| viz.mojom.DisplayClientReceiver = class { |
| /** |
| * @param {!viz.mojom.DisplayClientInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!viz.mojom.DisplayClientRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| viz.mojom.DisplayClientRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!viz.mojom.DisplayClientRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 70406846, |
| viz.mojom.DisplayClient_DidCompleteSwapWithNewSize_ParamsSpec.$, |
| null, |
| impl.didCompleteSwapWithNewSize.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| viz.mojom.DisplayClient = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "viz.mojom.DisplayClient"; |
| } |
| |
| /** |
| * 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 {!viz.mojom.DisplayClientRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new viz.mojom.DisplayClientRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the DisplayClient |
| * 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 |
| */ |
| viz.mojom.DisplayClientCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| viz.mojom.DisplayClientRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!viz.mojom.DisplayClientRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.didCompleteSwapWithNewSize = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 70406846, |
| viz.mojom.DisplayClient_DidCompleteSwapWithNewSize_ParamsSpec.$, |
| null, |
| this.didCompleteSwapWithNewSize.createReceiverHandler(false /* 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); |
| } |
| }; |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDisplayVisible_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_SetDisplayVisible_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_Resize_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_Resize_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDisplayColorMatrix_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_SetDisplayColorMatrix_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDisplayColorSpaces_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_SetDisplayColorSpaces_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetOutputIsSecure_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_SetOutputIsSecure_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDisplayVSyncParameters_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_SetDisplayVSyncParameters_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_AddVSyncParameterObserver_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_AddVSyncParameterObserver_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDelegatedInkPointRenderer_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_SetDelegatedInkPointRenderer_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetStandaloneBeginFrameObserver_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayPrivate_SetStandaloneBeginFrameObserver_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('viz.mojom.DisplayClient_DidCompleteSwapWithNewSize_ParamsSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| viz.mojom.DisplayClient_DidCompleteSwapWithNewSize_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_SetDisplayVisible_ParamsSpec.$, |
| 'DisplayPrivate_SetDisplayVisible_Params', |
| [ |
| mojo.internal.StructField( |
| 'visible', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDisplayVisible_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_SetDisplayVisible_Params = class { |
| constructor() { |
| /** @export { !boolean } */ |
| this.visible; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_Resize_ParamsSpec.$, |
| 'DisplayPrivate_Resize_Params', |
| [ |
| mojo.internal.StructField( |
| 'size', 0, |
| 0, |
| gfx.mojom.SizeSpec.$, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_Resize_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_Resize_Params = class { |
| constructor() { |
| /** @export { !gfx.mojom.Size } */ |
| this.size; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_SetDisplayColorMatrix_ParamsSpec.$, |
| 'DisplayPrivate_SetDisplayColorMatrix_Params', |
| [ |
| mojo.internal.StructField( |
| 'colorMatrix', 0, |
| 0, |
| gfx.mojom.TransformSpec.$, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDisplayColorMatrix_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_SetDisplayColorMatrix_Params = class { |
| constructor() { |
| /** @export { !gfx.mojom.Transform } */ |
| this.colorMatrix; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_SetDisplayColorSpaces_ParamsSpec.$, |
| 'DisplayPrivate_SetDisplayColorSpaces_Params', |
| [ |
| mojo.internal.StructField( |
| 'displayColorSpaces', 0, |
| 0, |
| gfx.mojom.DisplayColorSpacesSpec.$, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDisplayColorSpaces_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_SetDisplayColorSpaces_Params = class { |
| constructor() { |
| /** @export { !gfx.mojom.DisplayColorSpaces } */ |
| this.displayColorSpaces; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_SetOutputIsSecure_ParamsSpec.$, |
| 'DisplayPrivate_SetOutputIsSecure_Params', |
| [ |
| mojo.internal.StructField( |
| 'secure', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetOutputIsSecure_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_SetOutputIsSecure_Params = class { |
| constructor() { |
| /** @export { !boolean } */ |
| this.secure; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_SetDisplayVSyncParameters_ParamsSpec.$, |
| 'DisplayPrivate_SetDisplayVSyncParameters_Params', |
| [ |
| mojo.internal.StructField( |
| 'timebase', 0, |
| 0, |
| mojoBase.mojom.TimeTicksSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'interval', 8, |
| 0, |
| mojoBase.mojom.TimeDeltaSpec.$, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 24],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDisplayVSyncParameters_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_SetDisplayVSyncParameters_Params = class { |
| constructor() { |
| /** @export { !mojoBase.mojom.TimeTicks } */ |
| this.timebase; |
| /** @export { !mojoBase.mojom.TimeDelta } */ |
| this.interval; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_ParamsSpec.$, |
| 'DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_ForceImmediateDrawAndSwapIfPossible_Params = class { |
| constructor() { |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_AddVSyncParameterObserver_ParamsSpec.$, |
| 'DisplayPrivate_AddVSyncParameterObserver_Params', |
| [ |
| mojo.internal.StructField( |
| 'observer', 0, |
| 0, |
| mojo.internal.InterfaceProxy(viz.mojom.VSyncParameterObserverRemote), |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_AddVSyncParameterObserver_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_AddVSyncParameterObserver_Params = class { |
| constructor() { |
| /** @export { !viz.mojom.VSyncParameterObserverRemote } */ |
| this.observer; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_SetDelegatedInkPointRenderer_ParamsSpec.$, |
| 'DisplayPrivate_SetDelegatedInkPointRenderer_Params', |
| [ |
| mojo.internal.StructField( |
| 'receiver', 0, |
| 0, |
| mojo.internal.InterfaceRequest(gfx.mojom.DelegatedInkPointRendererPendingReceiver), |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetDelegatedInkPointRenderer_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_SetDelegatedInkPointRenderer_Params = class { |
| constructor() { |
| /** @export { !gfx.mojom.DelegatedInkPointRendererPendingReceiver } */ |
| this.receiver; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayPrivate_SetStandaloneBeginFrameObserver_ParamsSpec.$, |
| 'DisplayPrivate_SetStandaloneBeginFrameObserver_Params', |
| [ |
| mojo.internal.StructField( |
| 'observer', 0, |
| 0, |
| mojo.internal.InterfaceProxy(viz.mojom.BeginFrameObserverRemote), |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayPrivate_SetStandaloneBeginFrameObserver_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayPrivate_SetStandaloneBeginFrameObserver_Params = class { |
| constructor() { |
| /** @export { !viz.mojom.BeginFrameObserverRemote } */ |
| this.observer; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| viz.mojom.DisplayClient_DidCompleteSwapWithNewSize_ParamsSpec.$, |
| 'DisplayClient_DidCompleteSwapWithNewSize_Params', |
| [ |
| mojo.internal.StructField( |
| 'size', 0, |
| 0, |
| gfx.mojom.SizeSpec.$, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| goog.provide('viz.mojom.DisplayClient_DidCompleteSwapWithNewSize_Params'); |
| |
| /** @record */ |
| viz.mojom.DisplayClient_DidCompleteSwapWithNewSize_Params = class { |
| constructor() { |
| /** @export { !gfx.mojom.Size } */ |
| this.size; |
| } |
| }; |
| |
| |