| // 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. |
| |
| |
| |
| goog.provide('viz.mojom.FrameSinkVideoConsumerFrameCallbacks'); |
| goog.provide('viz.mojom.FrameSinkVideoConsumerFrameCallbacksImpl'); |
| goog.provide('viz.mojom.FrameSinkVideoConsumerFrameCallbacksPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| viz.mojom.FrameSinkVideoConsumerFrameCallbacks; |
| |
| /** @interface */ |
| viz.mojom.FrameSinkVideoConsumerFrameCallbacksImpl = class { |
| /** |
| */ |
| done() {} |
| /** |
| * @param { !number } utilization |
| */ |
| provideFeedback(utilization) {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { viz.mojom.FrameSinkVideoConsumerFrameCallbacksImpl } |
| */ |
| viz.mojom.FrameSinkVideoConsumerFrameCallbacksPtr = class { |
| /** |
| */ |
| done() {} |
| /** |
| * @param { !number } utilization |
| */ |
| provideFeedback(utilization) {} |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoConsumer'); |
| goog.provide('viz.mojom.FrameSinkVideoConsumerImpl'); |
| goog.provide('viz.mojom.FrameSinkVideoConsumerPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| viz.mojom.FrameSinkVideoConsumer; |
| |
| /** @interface */ |
| viz.mojom.FrameSinkVideoConsumerImpl = class { |
| /** |
| * @param { !mojoBase.mojom.ReadOnlySharedMemoryRegion } data |
| * @param { !media.mojom.VideoFrameInfo } info |
| * @param { !gfx.mojom.Rect } contentRect |
| * @param { !viz.mojom.FrameSinkVideoConsumerFrameCallbacksPtr } callbacks |
| */ |
| onFrameCaptured(data, info, contentRect, callbacks) {} |
| /** |
| */ |
| onStopped() {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { viz.mojom.FrameSinkVideoConsumerImpl } |
| */ |
| viz.mojom.FrameSinkVideoConsumerPtr = class { |
| /** |
| * @param { !mojoBase.mojom.ReadOnlySharedMemoryRegion } data |
| * @param { !media.mojom.VideoFrameInfo } info |
| * @param { !gfx.mojom.Rect } contentRect |
| * @param { !viz.mojom.FrameSinkVideoConsumerFrameCallbacksPtr } callbacks |
| */ |
| onFrameCaptured(data, info, contentRect, callbacks) {} |
| /** |
| */ |
| onStopped() {} |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer'); |
| goog.provide('viz.mojom.FrameSinkVideoCapturerImpl'); |
| goog.provide('viz.mojom.FrameSinkVideoCapturerPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| viz.mojom.FrameSinkVideoCapturer; |
| |
| /** @interface */ |
| viz.mojom.FrameSinkVideoCapturerImpl = class { |
| /** |
| * @param { !media.mojom.VideoPixelFormat } format |
| * @param { !gfx.mojom.ColorSpace } colorSpace |
| */ |
| setFormat(format, colorSpace) {} |
| /** |
| * @param { !mojoBase.mojom.TimeDelta } minPeriod |
| */ |
| setMinCapturePeriod(minPeriod) {} |
| /** |
| * @param { !mojoBase.mojom.TimeDelta } minPeriod |
| */ |
| setMinSizeChangePeriod(minPeriod) {} |
| /** |
| * @param { !gfx.mojom.Size } minSize |
| * @param { !gfx.mojom.Size } maxSize |
| * @param { !boolean } useFixedAspectRatio |
| */ |
| setResolutionConstraints(minSize, maxSize, useFixedAspectRatio) {} |
| /** |
| * @param { !boolean } enabled |
| */ |
| setAutoThrottlingEnabled(enabled) {} |
| /** |
| * @param { viz.mojom.FrameSinkId } frameSinkId |
| */ |
| changeTarget(frameSinkId) {} |
| /** |
| * @param { !viz.mojom.FrameSinkVideoConsumerPtr } consumer |
| */ |
| start(consumer) {} |
| /** |
| */ |
| stop() {} |
| /** |
| */ |
| requestRefreshFrame() {} |
| /** |
| * @param { !number } stackingIndex |
| * @param { !mojo.InterfaceRequest } request |
| */ |
| createOverlay(stackingIndex, request) {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { viz.mojom.FrameSinkVideoCapturerImpl } |
| */ |
| viz.mojom.FrameSinkVideoCapturerPtr = class { |
| /** |
| * @param { !media.mojom.VideoPixelFormat } format |
| * @param { !gfx.mojom.ColorSpace } colorSpace |
| */ |
| setFormat(format, colorSpace) {} |
| /** |
| * @param { !mojoBase.mojom.TimeDelta } minPeriod |
| */ |
| setMinCapturePeriod(minPeriod) {} |
| /** |
| * @param { !mojoBase.mojom.TimeDelta } minPeriod |
| */ |
| setMinSizeChangePeriod(minPeriod) {} |
| /** |
| * @param { !gfx.mojom.Size } minSize |
| * @param { !gfx.mojom.Size } maxSize |
| * @param { !boolean } useFixedAspectRatio |
| */ |
| setResolutionConstraints(minSize, maxSize, useFixedAspectRatio) {} |
| /** |
| * @param { !boolean } enabled |
| */ |
| setAutoThrottlingEnabled(enabled) {} |
| /** |
| * @param { viz.mojom.FrameSinkId } frameSinkId |
| */ |
| changeTarget(frameSinkId) {} |
| /** |
| * @param { !viz.mojom.FrameSinkVideoConsumerPtr } consumer |
| */ |
| start(consumer) {} |
| /** |
| */ |
| stop() {} |
| /** |
| */ |
| requestRefreshFrame() {} |
| /** |
| * @param { !number } stackingIndex |
| * @param { !mojo.InterfaceRequest } request |
| */ |
| createOverlay(stackingIndex, request) {} |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCaptureOverlay'); |
| goog.provide('viz.mojom.FrameSinkVideoCaptureOverlayImpl'); |
| goog.provide('viz.mojom.FrameSinkVideoCaptureOverlayPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| viz.mojom.FrameSinkVideoCaptureOverlay; |
| |
| /** @interface */ |
| viz.mojom.FrameSinkVideoCaptureOverlayImpl = class { |
| /** |
| * @param { !skia.mojom.Bitmap } image |
| * @param { !gfx.mojom.RectF } bounds |
| */ |
| setImageAndBounds(image, bounds) {} |
| /** |
| * @param { !gfx.mojom.RectF } bounds |
| */ |
| setBounds(bounds) {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { viz.mojom.FrameSinkVideoCaptureOverlayImpl } |
| */ |
| viz.mojom.FrameSinkVideoCaptureOverlayPtr = class { |
| /** |
| * @param { !skia.mojom.Bitmap } image |
| * @param { !gfx.mojom.RectF } bounds |
| */ |
| setImageAndBounds(image, bounds) {} |
| /** |
| * @param { !gfx.mojom.RectF } bounds |
| */ |
| setBounds(bounds) {} |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoConsumerFrameCallbacks_Done_Params'); |
| |
| viz.mojom.FrameSinkVideoConsumerFrameCallbacks_Done_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoConsumerFrameCallbacks_ProvideFeedback_Params'); |
| |
| viz.mojom.FrameSinkVideoConsumerFrameCallbacks_ProvideFeedback_Params = class { |
| constructor() { |
| /** @type { !number } */ |
| this.utilization; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoConsumer_OnFrameCaptured_Params'); |
| |
| viz.mojom.FrameSinkVideoConsumer_OnFrameCaptured_Params = class { |
| constructor() { |
| /** @type { !mojoBase.mojom.ReadOnlySharedMemoryRegion } */ |
| this.data; |
| /** @type { !media.mojom.VideoFrameInfo } */ |
| this.info; |
| /** @type { !gfx.mojom.Rect } */ |
| this.contentRect; |
| /** @type { !viz.mojom.FrameSinkVideoConsumerFrameCallbacksPtr } */ |
| this.callbacks; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoConsumer_OnStopped_Params'); |
| |
| viz.mojom.FrameSinkVideoConsumer_OnStopped_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_SetFormat_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_SetFormat_Params = class { |
| constructor() { |
| /** @type { !media.mojom.VideoPixelFormat } */ |
| this.format; |
| /** @type { !gfx.mojom.ColorSpace } */ |
| this.colorSpace; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_SetMinCapturePeriod_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_SetMinCapturePeriod_Params = class { |
| constructor() { |
| /** @type { !mojoBase.mojom.TimeDelta } */ |
| this.minPeriod; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_SetMinSizeChangePeriod_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_SetMinSizeChangePeriod_Params = class { |
| constructor() { |
| /** @type { !mojoBase.mojom.TimeDelta } */ |
| this.minPeriod; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_SetResolutionConstraints_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_SetResolutionConstraints_Params = class { |
| constructor() { |
| /** @type { !gfx.mojom.Size } */ |
| this.minSize; |
| /** @type { !gfx.mojom.Size } */ |
| this.maxSize; |
| /** @type { !boolean } */ |
| this.useFixedAspectRatio; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_SetAutoThrottlingEnabled_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_SetAutoThrottlingEnabled_Params = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.enabled; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_ChangeTarget_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_ChangeTarget_Params = class { |
| constructor() { |
| /** @type { viz.mojom.FrameSinkId } */ |
| this.frameSinkId; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_Start_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_Start_Params = class { |
| constructor() { |
| /** @type { !viz.mojom.FrameSinkVideoConsumerPtr } */ |
| this.consumer; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_Stop_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_Stop_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_RequestRefreshFrame_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_RequestRefreshFrame_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCapturer_CreateOverlay_Params'); |
| |
| viz.mojom.FrameSinkVideoCapturer_CreateOverlay_Params = class { |
| constructor() { |
| /** @type { !number } */ |
| this.stackingIndex; |
| /** @type { !mojo.InterfaceRequest } */ |
| this.request; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCaptureOverlay_SetImageAndBounds_Params'); |
| |
| viz.mojom.FrameSinkVideoCaptureOverlay_SetImageAndBounds_Params = class { |
| constructor() { |
| /** @type { !skia.mojom.Bitmap } */ |
| this.image; |
| /** @type { !gfx.mojom.RectF } */ |
| this.bounds; |
| } |
| }; |
| |
| goog.provide('viz.mojom.FrameSinkVideoCaptureOverlay_SetBounds_Params'); |
| |
| viz.mojom.FrameSinkVideoCaptureOverlay_SetBounds_Params = class { |
| constructor() { |
| /** @type { !gfx.mojom.RectF } */ |
| this.bounds; |
| } |
| }; |