blob: 06ebb67c7d7b5a86c23f3fd6b0167d937b325808 [file] [log] [blame]
// device/vr/public/mojom/vr_service.mojom-lite-for-compile.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* @suppress {missingRequire}
*/
'use strict';
goog.require('mojo.internal');
goog.require('mojo.internal.interfaceSupport');
goog.require('device.mojom.RequestSessionError');
goog.require('device.mojom.XRDepthDataFormat');
goog.require('device.mojom.XRDepthUsage');
goog.require('device.mojom.XRSessionFeature');
goog.require('gpu.mojom.ExportedSharedImage');
goog.require('device.mojom.Gamepad');
goog.require('gfx.mojom.GpuFenceHandle');
goog.require('gpu.mojom.MailboxHolder');
goog.require('gfx.mojom.Point3F');
goog.require('gfx.mojom.PointF');
goog.require('gfx.mojom.Quaternion');
goog.require('gfx.mojom.Rect');
goog.require('gfx.mojom.RectF');
goog.require('gfx.mojom.Size');
goog.require('gpu.mojom.SyncToken');
goog.require('mojoBase.mojom.TimeDelta');
goog.require('gfx.mojom.Transform');
goog.require('gfx.mojom.Vector3dF');
goog.require('device.mojom.XRSessionOptions');
goog.require('mojoBase.mojom.BigBuffer');
goog.provide('device.mojom.XRHandedness');
goog.provide('device.mojom.XRHandednessSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRHandednessSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRHandedness = {
NONE: 0,
LEFT: 1,
RIGHT: 2,
MIN_VALUE: 0,
MAX_VALUE: 2,
};
goog.provide('device.mojom.XRTargetRayMode');
goog.provide('device.mojom.XRTargetRayModeSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRTargetRayModeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRTargetRayMode = {
GAZING: 1,
POINTING: 2,
TAPPING: 3,
MIN_VALUE: 1,
MAX_VALUE: 3,
};
goog.provide('device.mojom.XRSessionFeatureRequestStatus');
goog.provide('device.mojom.XRSessionFeatureRequestStatusSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRSessionFeatureRequestStatusSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRSessionFeatureRequestStatus = {
kNotRequested: 0,
kRequired: 1,
kOptionalAccepted: 2,
kOptionalRejected: 3,
MIN_VALUE: 0,
MAX_VALUE: 3,
};
goog.provide('device.mojom.XREnvironmentBlendMode');
goog.provide('device.mojom.XREnvironmentBlendModeSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XREnvironmentBlendModeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XREnvironmentBlendMode = {
kOpaque: 1,
kAlphaBlend: 2,
kAdditive: 3,
MIN_VALUE: 1,
MAX_VALUE: 3,
};
goog.provide('device.mojom.XRInteractionMode');
goog.provide('device.mojom.XRInteractionModeSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRInteractionModeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRInteractionMode = {
kScreenSpace: 1,
kWorldSpace: 2,
MIN_VALUE: 1,
MAX_VALUE: 2,
};
goog.provide('device.mojom.XRHandJoint');
goog.provide('device.mojom.XRHandJointSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRHandJointSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRHandJoint = {
kWrist: 0,
kThumbMetacarpal: 1,
kThumbPhalanxProximal: 2,
kThumbPhalanxDistal: 3,
kThumbTip: 4,
kIndexFingerMetacarpal: 5,
kIndexFingerPhalanxProximal: 6,
kIndexFingerPhalanxIntermediate: 7,
kIndexFingerPhalanxDistal: 8,
kIndexFingerTip: 9,
kMiddleFingerMetacarpal: 10,
kMiddleFingerPhalanxProximal: 11,
kMiddleFingerPhalanxIntermediate: 12,
kMiddleFingerPhalanxDistal: 13,
kMiddleFingerTip: 14,
kRingFingerMetacarpal: 15,
kRingFingerPhalanxProximal: 16,
kRingFingerPhalanxIntermediate: 17,
kRingFingerPhalanxDistal: 18,
kRingFingerTip: 19,
kPinkyFingerMetacarpal: 20,
kPinkyFingerPhalanxProximal: 21,
kPinkyFingerPhalanxIntermediate: 22,
kPinkyFingerPhalanxDistal: 23,
kPinkyFingerTip: 24,
MIN_VALUE: 0,
MAX_VALUE: 24,
};
goog.provide('device.mojom.XREye');
goog.provide('device.mojom.XREyeSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XREyeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XREye = {
kNone: 0,
kLeft: 1,
kRight: 2,
MIN_VALUE: 0,
MAX_VALUE: 2,
};
goog.provide('device.mojom.XRPresentationTransportMethod');
goog.provide('device.mojom.XRPresentationTransportMethodSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRPresentationTransportMethodSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRPresentationTransportMethod = {
NONE: 0,
SUBMIT_AS_TEXTURE_HANDLE: 1,
SUBMIT_AS_MAILBOX_HOLDER: 2,
DRAW_INTO_TEXTURE_MAILBOX: 3,
MIN_VALUE: 0,
MAX_VALUE: 3,
};
goog.provide('device.mojom.XRReferenceSpaceType');
goog.provide('device.mojom.XRReferenceSpaceTypeSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRReferenceSpaceTypeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRReferenceSpaceType = {
kViewer: 0,
kLocal: 1,
kLocalFloor: 2,
kBoundedFloor: 3,
kUnbounded: 4,
MIN_VALUE: 0,
MAX_VALUE: 4,
};
goog.provide('device.mojom.XRInputSourceSpaceType');
goog.provide('device.mojom.XRInputSourceSpaceTypeSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRInputSourceSpaceTypeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRInputSourceSpaceType = {
kTargetRay: 0,
kGrip: 1,
MIN_VALUE: 0,
MAX_VALUE: 1,
};
goog.provide('device.mojom.XRPlaneOrientation');
goog.provide('device.mojom.XRPlaneOrientationSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRPlaneOrientationSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRPlaneOrientation = {
UNKNOWN: 0,
HORIZONTAL: 1,
VERTICAL: 2,
MIN_VALUE: 0,
MAX_VALUE: 2,
};
goog.provide('device.mojom.XrCompatibleResult');
goog.provide('device.mojom.XrCompatibleResultSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XrCompatibleResultSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XrCompatibleResult = {
kAlreadyCompatible: 0,
kNoDeviceAvailable: 1,
kWebXrFeaturePolicyBlocked: 2,
kCompatibleAfterRestart: 3,
kNotCompatibleAfterRestart: 4,
MIN_VALUE: 0,
MAX_VALUE: 4,
};
goog.provide('device.mojom.CreateAnchorResult');
goog.provide('device.mojom.CreateAnchorResultSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.CreateAnchorResultSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.CreateAnchorResult = {
SUCCESS: 0,
FAILURE: 1,
MIN_VALUE: 0,
MAX_VALUE: 1,
};
goog.provide('device.mojom.SubscribeToHitTestResult');
goog.provide('device.mojom.SubscribeToHitTestResultSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.SubscribeToHitTestResultSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.SubscribeToHitTestResult = {
SUCCESS: 0,
FAILURE_GENERIC: 1,
MIN_VALUE: 0,
MAX_VALUE: 1,
};
goog.provide('device.mojom.EntityTypeForHitTest');
goog.provide('device.mojom.EntityTypeForHitTestSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.EntityTypeForHitTestSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.EntityTypeForHitTest = {
POINT: 1,
PLANE: 2,
MIN_VALUE: 1,
MAX_VALUE: 2,
};
goog.provide('device.mojom.XRVisibilityState');
goog.provide('device.mojom.XRVisibilityStateSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
device.mojom.XRVisibilityStateSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
device.mojom.XRVisibilityState = {
VISIBLE: 1,
VISIBLE_BLURRED: 2,
HIDDEN: 3,
MIN_VALUE: 1,
MAX_VALUE: 3,
};
goog.provide('device.mojom.VRService');
goog.provide('device.mojom.VRServiceReceiver');
goog.provide('device.mojom.VRServiceCallbackRouter');
goog.provide('device.mojom.VRServiceInterface');
goog.provide('device.mojom.VRServiceRemote');
goog.provide('device.mojom.VRServicePendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
device.mojom.VRServicePendingReceiver = 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,
device.mojom.VRService.$interfaceName,
scope);
}
};
/** @interface */
device.mojom.VRServiceInterface = class {
/**
* @param { !device.mojom.VRServiceClientRemote } client
*/
setClient(client) {}
/**
* @param { !device.mojom.XRSessionOptions } options
* @return {!Promise<{
result: !device.mojom.RequestSessionResult,
* }>}
*/
requestSession(options) {}
/**
* @param { !device.mojom.XRSessionOptions } options
* @return {!Promise<{
supportsSession: !boolean,
* }>}
*/
supportsSession(options) {}
/**
* @return {!Promise}
*/
exitPresent() {}
/**
* @param { !boolean } throttled
*/
setFramesThrottled(throttled) {}
/**
* @return {!Promise<{
xrCompatibleResult: !device.mojom.XrCompatibleResult,
* }>}
*/
makeXrCompatible() {}
};
/**
* @export
* @implements { device.mojom.VRServiceInterface }
*/
device.mojom.VRServiceRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!device.mojom.VRServicePendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
device.mojom.VRServicePendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!device.mojom.VRServicePendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !device.mojom.VRServiceClientRemote } client
*/
setClient(
client) {
this.proxy.sendMessage(
0,
device.mojom.VRService_SetClient_ParamsSpec.$,
null,
[
client
]);
}
/**
* @param { !device.mojom.XRSessionOptions } options
* @return {!Promise<{
result: !device.mojom.RequestSessionResult,
* }>}
*/
requestSession(
options) {
return this.proxy.sendMessage(
1,
device.mojom.VRService_RequestSession_ParamsSpec.$,
device.mojom.VRService_RequestSession_ResponseParamsSpec.$,
[
options
]);
}
/**
* @param { !device.mojom.XRSessionOptions } options
* @return {!Promise<{
supportsSession: !boolean,
* }>}
*/
supportsSession(
options) {
return this.proxy.sendMessage(
2,
device.mojom.VRService_SupportsSession_ParamsSpec.$,
device.mojom.VRService_SupportsSession_ResponseParamsSpec.$,
[
options
]);
}
/**
* @return {!Promise}
*/
exitPresent() {
return this.proxy.sendMessage(
3,
device.mojom.VRService_ExitPresent_ParamsSpec.$,
device.mojom.VRService_ExitPresent_ResponseParamsSpec.$,
[
]);
}
/**
* @param { !boolean } throttled
*/
setFramesThrottled(
throttled) {
this.proxy.sendMessage(
4,
device.mojom.VRService_SetFramesThrottled_ParamsSpec.$,
null,
[
throttled
]);
}
/**
* @return {!Promise<{
xrCompatibleResult: !device.mojom.XrCompatibleResult,
* }>}
*/
makeXrCompatible() {
return this.proxy.sendMessage(
5,
device.mojom.VRService_MakeXrCompatible_ParamsSpec.$,
device.mojom.VRService_MakeXrCompatible_ResponseParamsSpec.$,
[
]);
}
};
/**
* An object which receives request messages for the VRService
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
device.mojom.VRServiceReceiver = class {
/**
* @param {!device.mojom.VRServiceInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!device.mojom.VRServiceRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.VRServiceRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.VRServiceRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
device.mojom.VRService_SetClient_ParamsSpec.$,
null,
impl.setClient.bind(impl));
this.helper_internal_.registerHandler(
1,
device.mojom.VRService_RequestSession_ParamsSpec.$,
device.mojom.VRService_RequestSession_ResponseParamsSpec.$,
impl.requestSession.bind(impl));
this.helper_internal_.registerHandler(
2,
device.mojom.VRService_SupportsSession_ParamsSpec.$,
device.mojom.VRService_SupportsSession_ResponseParamsSpec.$,
impl.supportsSession.bind(impl));
this.helper_internal_.registerHandler(
3,
device.mojom.VRService_ExitPresent_ParamsSpec.$,
device.mojom.VRService_ExitPresent_ResponseParamsSpec.$,
impl.exitPresent.bind(impl));
this.helper_internal_.registerHandler(
4,
device.mojom.VRService_SetFramesThrottled_ParamsSpec.$,
null,
impl.setFramesThrottled.bind(impl));
this.helper_internal_.registerHandler(
5,
device.mojom.VRService_MakeXrCompatible_ParamsSpec.$,
device.mojom.VRService_MakeXrCompatible_ResponseParamsSpec.$,
impl.makeXrCompatible.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
device.mojom.VRService = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "device.mojom.VRService";
}
/**
* 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 {!device.mojom.VRServiceRemote}
* @export
*/
static getRemote() {
let remote = new device.mojom.VRServiceRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the VRService
* 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
*/
device.mojom.VRServiceCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.VRServiceRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.VRServiceRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setClient =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
device.mojom.VRService_SetClient_ParamsSpec.$,
null,
this.setClient.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.requestSession =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1,
device.mojom.VRService_RequestSession_ParamsSpec.$,
device.mojom.VRService_RequestSession_ResponseParamsSpec.$,
this.requestSession.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.supportsSession =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
2,
device.mojom.VRService_SupportsSession_ParamsSpec.$,
device.mojom.VRService_SupportsSession_ResponseParamsSpec.$,
this.supportsSession.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.exitPresent =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
3,
device.mojom.VRService_ExitPresent_ParamsSpec.$,
device.mojom.VRService_ExitPresent_ResponseParamsSpec.$,
this.exitPresent.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setFramesThrottled =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
4,
device.mojom.VRService_SetFramesThrottled_ParamsSpec.$,
null,
this.setFramesThrottled.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.makeXrCompatible =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
5,
device.mojom.VRService_MakeXrCompatible_ParamsSpec.$,
device.mojom.VRService_MakeXrCompatible_ResponseParamsSpec.$,
this.makeXrCompatible.createReceiverHandler(true /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
/**
* @param {number} id An ID returned by a prior call to addListener.
* @return {boolean} True iff the identified listener was found and removed.
* @export
*/
removeListener(id) {
return this.router_.removeListener(id);
}
};
goog.provide('device.mojom.XRSessionMetricsRecorder');
goog.provide('device.mojom.XRSessionMetricsRecorderReceiver');
goog.provide('device.mojom.XRSessionMetricsRecorderCallbackRouter');
goog.provide('device.mojom.XRSessionMetricsRecorderInterface');
goog.provide('device.mojom.XRSessionMetricsRecorderRemote');
goog.provide('device.mojom.XRSessionMetricsRecorderPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
device.mojom.XRSessionMetricsRecorderPendingReceiver = 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,
device.mojom.XRSessionMetricsRecorder.$interfaceName,
scope);
}
};
/** @interface */
device.mojom.XRSessionMetricsRecorderInterface = class {
/**
* @param { !device.mojom.XRSessionFeature } feature
*/
reportFeatureUsed(feature) {}
};
/**
* @export
* @implements { device.mojom.XRSessionMetricsRecorderInterface }
*/
device.mojom.XRSessionMetricsRecorderRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!device.mojom.XRSessionMetricsRecorderPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
device.mojom.XRSessionMetricsRecorderPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!device.mojom.XRSessionMetricsRecorderPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !device.mojom.XRSessionFeature } feature
*/
reportFeatureUsed(
feature) {
this.proxy.sendMessage(
0,
device.mojom.XRSessionMetricsRecorder_ReportFeatureUsed_ParamsSpec.$,
null,
[
feature
]);
}
};
/**
* An object which receives request messages for the XRSessionMetricsRecorder
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
device.mojom.XRSessionMetricsRecorderReceiver = class {
/**
* @param {!device.mojom.XRSessionMetricsRecorderInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!device.mojom.XRSessionMetricsRecorderRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRSessionMetricsRecorderRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRSessionMetricsRecorderRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRSessionMetricsRecorder_ReportFeatureUsed_ParamsSpec.$,
null,
impl.reportFeatureUsed.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
device.mojom.XRSessionMetricsRecorder = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "device.mojom.XRSessionMetricsRecorder";
}
/**
* 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 {!device.mojom.XRSessionMetricsRecorderRemote}
* @export
*/
static getRemote() {
let remote = new device.mojom.XRSessionMetricsRecorderRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the XRSessionMetricsRecorder
* 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
*/
device.mojom.XRSessionMetricsRecorderCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRSessionMetricsRecorderRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRSessionMetricsRecorderRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.reportFeatureUsed =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRSessionMetricsRecorder_ReportFeatureUsed_ParamsSpec.$,
null,
this.reportFeatureUsed.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('device.mojom.VRServiceClient');
goog.provide('device.mojom.VRServiceClientReceiver');
goog.provide('device.mojom.VRServiceClientCallbackRouter');
goog.provide('device.mojom.VRServiceClientInterface');
goog.provide('device.mojom.VRServiceClientRemote');
goog.provide('device.mojom.VRServiceClientPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
device.mojom.VRServiceClientPendingReceiver = 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,
device.mojom.VRServiceClient.$interfaceName,
scope);
}
};
/** @interface */
device.mojom.VRServiceClientInterface = class {
/**
*/
onDeviceChanged() {}
};
/**
* @export
* @implements { device.mojom.VRServiceClientInterface }
*/
device.mojom.VRServiceClientRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!device.mojom.VRServiceClientPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
device.mojom.VRServiceClientPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!device.mojom.VRServiceClientPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
*/
onDeviceChanged() {
this.proxy.sendMessage(
0,
device.mojom.VRServiceClient_OnDeviceChanged_ParamsSpec.$,
null,
[
]);
}
};
/**
* An object which receives request messages for the VRServiceClient
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
device.mojom.VRServiceClientReceiver = class {
/**
* @param {!device.mojom.VRServiceClientInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!device.mojom.VRServiceClientRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.VRServiceClientRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.VRServiceClientRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
device.mojom.VRServiceClient_OnDeviceChanged_ParamsSpec.$,
null,
impl.onDeviceChanged.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
device.mojom.VRServiceClient = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "device.mojom.VRServiceClient";
}
/**
* 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 {!device.mojom.VRServiceClientRemote}
* @export
*/
static getRemote() {
let remote = new device.mojom.VRServiceClientRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the VRServiceClient
* 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
*/
device.mojom.VRServiceClientCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.VRServiceClientRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.VRServiceClientRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.onDeviceChanged =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
device.mojom.VRServiceClient_OnDeviceChanged_ParamsSpec.$,
null,
this.onDeviceChanged.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('device.mojom.XREnvironmentIntegrationProvider');
goog.provide('device.mojom.XREnvironmentIntegrationProviderReceiver');
goog.provide('device.mojom.XREnvironmentIntegrationProviderCallbackRouter');
goog.provide('device.mojom.XREnvironmentIntegrationProviderInterface');
goog.provide('device.mojom.XREnvironmentIntegrationProviderRemote');
goog.provide('device.mojom.XREnvironmentIntegrationProviderPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
device.mojom.XREnvironmentIntegrationProviderPendingReceiver = 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,
device.mojom.XREnvironmentIntegrationProvider.$interfaceName,
scope);
}
};
/** @interface */
device.mojom.XREnvironmentIntegrationProviderInterface = class {
/**
* @param { !device.mojom.XRNativeOriginInformation } nativeOriginInformation
* @param { !Array<!device.mojom.EntityTypeForHitTest> } entityTypes
* @param { !device.mojom.XRRay } ray
* @return {!Promise<{
result: !device.mojom.SubscribeToHitTestResult,
subscriptionId: !bigint,
* }>}
*/
subscribeToHitTest(nativeOriginInformation, entityTypes, ray) {}
/**
* @param { !string } profileName
* @param { !Array<!device.mojom.EntityTypeForHitTest> } entityTypes
* @param { !device.mojom.XRRay } ray
* @return {!Promise<{
result: !device.mojom.SubscribeToHitTestResult,
subscriptionId: !bigint,
* }>}
*/
subscribeToHitTestForTransientInput(profileName, entityTypes, ray) {}
/**
* @param { !bigint } subscriptionId
*/
unsubscribeFromHitTest(subscriptionId) {}
/**
* @param { !device.mojom.XRNativeOriginInformation } nativeOriginInformation
* @param { !device.mojom.Pose } nativeOriginFromAnchor
* @return {!Promise<{
result: !device.mojom.CreateAnchorResult,
anchorId: !bigint,
* }>}
*/
createAnchor(nativeOriginInformation, nativeOriginFromAnchor) {}
/**
* @param { !device.mojom.XRNativeOriginInformation } nativeOriginInformation
* @param { !device.mojom.Pose } nativeOriginFromAnchor
* @param { !bigint } planeId
* @return {!Promise<{
result: !device.mojom.CreateAnchorResult,
anchorId: !bigint,
* }>}
*/
createPlaneAnchor(nativeOriginInformation, nativeOriginFromAnchor, planeId) {}
/**
* @param { !bigint } anchorId
*/
detachAnchor(anchorId) {}
};
/**
* @export
* @implements { device.mojom.XREnvironmentIntegrationProviderInterface }
*/
device.mojom.XREnvironmentIntegrationProviderRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!device.mojom.XREnvironmentIntegrationProviderPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
device.mojom.XREnvironmentIntegrationProviderPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!device.mojom.XREnvironmentIntegrationProviderPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !device.mojom.XRNativeOriginInformation } nativeOriginInformation
* @param { !Array<!device.mojom.EntityTypeForHitTest> } entityTypes
* @param { !device.mojom.XRRay } ray
* @return {!Promise<{
result: !device.mojom.SubscribeToHitTestResult,
subscriptionId: !bigint,
* }>}
*/
subscribeToHitTest(
nativeOriginInformation,
entityTypes,
ray) {
return this.proxy.sendMessage(
0,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParamsSpec.$,
[
nativeOriginInformation,
entityTypes,
ray
]);
}
/**
* @param { !string } profileName
* @param { !Array<!device.mojom.EntityTypeForHitTest> } entityTypes
* @param { !device.mojom.XRRay } ray
* @return {!Promise<{
result: !device.mojom.SubscribeToHitTestResult,
subscriptionId: !bigint,
* }>}
*/
subscribeToHitTestForTransientInput(
profileName,
entityTypes,
ray) {
return this.proxy.sendMessage(
1,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParamsSpec.$,
[
profileName,
entityTypes,
ray
]);
}
/**
* @param { !bigint } subscriptionId
*/
unsubscribeFromHitTest(
subscriptionId) {
this.proxy.sendMessage(
2,
device.mojom.XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_ParamsSpec.$,
null,
[
subscriptionId
]);
}
/**
* @param { !device.mojom.XRNativeOriginInformation } nativeOriginInformation
* @param { !device.mojom.Pose } nativeOriginFromAnchor
* @return {!Promise<{
result: !device.mojom.CreateAnchorResult,
anchorId: !bigint,
* }>}
*/
createAnchor(
nativeOriginInformation,
nativeOriginFromAnchor) {
return this.proxy.sendMessage(
3,
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ResponseParamsSpec.$,
[
nativeOriginInformation,
nativeOriginFromAnchor
]);
}
/**
* @param { !device.mojom.XRNativeOriginInformation } nativeOriginInformation
* @param { !device.mojom.Pose } nativeOriginFromAnchor
* @param { !bigint } planeId
* @return {!Promise<{
result: !device.mojom.CreateAnchorResult,
anchorId: !bigint,
* }>}
*/
createPlaneAnchor(
nativeOriginInformation,
nativeOriginFromAnchor,
planeId) {
return this.proxy.sendMessage(
4,
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParamsSpec.$,
[
nativeOriginInformation,
nativeOriginFromAnchor,
planeId
]);
}
/**
* @param { !bigint } anchorId
*/
detachAnchor(
anchorId) {
this.proxy.sendMessage(
5,
device.mojom.XREnvironmentIntegrationProvider_DetachAnchor_ParamsSpec.$,
null,
[
anchorId
]);
}
};
/**
* An object which receives request messages for the XREnvironmentIntegrationProvider
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
device.mojom.XREnvironmentIntegrationProviderReceiver = class {
/**
* @param {!device.mojom.XREnvironmentIntegrationProviderInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!device.mojom.XREnvironmentIntegrationProviderRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XREnvironmentIntegrationProviderRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XREnvironmentIntegrationProviderRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParamsSpec.$,
impl.subscribeToHitTest.bind(impl));
this.helper_internal_.registerHandler(
1,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParamsSpec.$,
impl.subscribeToHitTestForTransientInput.bind(impl));
this.helper_internal_.registerHandler(
2,
device.mojom.XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_ParamsSpec.$,
null,
impl.unsubscribeFromHitTest.bind(impl));
this.helper_internal_.registerHandler(
3,
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ResponseParamsSpec.$,
impl.createAnchor.bind(impl));
this.helper_internal_.registerHandler(
4,
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParamsSpec.$,
impl.createPlaneAnchor.bind(impl));
this.helper_internal_.registerHandler(
5,
device.mojom.XREnvironmentIntegrationProvider_DetachAnchor_ParamsSpec.$,
null,
impl.detachAnchor.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
device.mojom.XREnvironmentIntegrationProvider = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "device.mojom.XREnvironmentIntegrationProvider";
}
/**
* 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 {!device.mojom.XREnvironmentIntegrationProviderRemote}
* @export
*/
static getRemote() {
let remote = new device.mojom.XREnvironmentIntegrationProviderRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the XREnvironmentIntegrationProvider
* 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
*/
device.mojom.XREnvironmentIntegrationProviderCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XREnvironmentIntegrationProviderRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XREnvironmentIntegrationProviderRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.subscribeToHitTest =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParamsSpec.$,
this.subscribeToHitTest.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.subscribeToHitTestForTransientInput =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParamsSpec.$,
this.subscribeToHitTestForTransientInput.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.unsubscribeFromHitTest =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
2,
device.mojom.XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_ParamsSpec.$,
null,
this.unsubscribeFromHitTest.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.createAnchor =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
3,
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ResponseParamsSpec.$,
this.createAnchor.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.createPlaneAnchor =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
4,
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ParamsSpec.$,
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParamsSpec.$,
this.createPlaneAnchor.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.detachAnchor =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
5,
device.mojom.XREnvironmentIntegrationProvider_DetachAnchor_ParamsSpec.$,
null,
this.detachAnchor.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('device.mojom.XRFrameDataProvider');
goog.provide('device.mojom.XRFrameDataProviderReceiver');
goog.provide('device.mojom.XRFrameDataProviderCallbackRouter');
goog.provide('device.mojom.XRFrameDataProviderInterface');
goog.provide('device.mojom.XRFrameDataProviderRemote');
goog.provide('device.mojom.XRFrameDataProviderPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
device.mojom.XRFrameDataProviderPendingReceiver = 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,
device.mojom.XRFrameDataProvider.$interfaceName,
scope);
}
};
/** @interface */
device.mojom.XRFrameDataProviderInterface = class {
/**
* @param { ?device.mojom.XRFrameDataRequestOptions } options
* @return {!Promise<{
frameData: ?device.mojom.XRFrameData,
* }>}
*/
getFrameData(options) {}
/**
* @param { !Object } environmentProvider
*/
getEnvironmentIntegrationProvider(environmentProvider) {}
};
/**
* @export
* @implements { device.mojom.XRFrameDataProviderInterface }
*/
device.mojom.XRFrameDataProviderRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!device.mojom.XRFrameDataProviderPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
device.mojom.XRFrameDataProviderPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!device.mojom.XRFrameDataProviderPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { ?device.mojom.XRFrameDataRequestOptions } options
* @return {!Promise<{
frameData: ?device.mojom.XRFrameData,
* }>}
*/
getFrameData(
options) {
return this.proxy.sendMessage(
0,
device.mojom.XRFrameDataProvider_GetFrameData_ParamsSpec.$,
device.mojom.XRFrameDataProvider_GetFrameData_ResponseParamsSpec.$,
[
options
]);
}
/**
* @param { !Object } environmentProvider
*/
getEnvironmentIntegrationProvider(
environmentProvider) {
this.proxy.sendMessage(
1,
device.mojom.XRFrameDataProvider_GetEnvironmentIntegrationProvider_ParamsSpec.$,
null,
[
environmentProvider
]);
}
};
/**
* An object which receives request messages for the XRFrameDataProvider
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
device.mojom.XRFrameDataProviderReceiver = class {
/**
* @param {!device.mojom.XRFrameDataProviderInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!device.mojom.XRFrameDataProviderRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRFrameDataProviderRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRFrameDataProviderRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRFrameDataProvider_GetFrameData_ParamsSpec.$,
device.mojom.XRFrameDataProvider_GetFrameData_ResponseParamsSpec.$,
impl.getFrameData.bind(impl));
this.helper_internal_.registerHandler(
1,
device.mojom.XRFrameDataProvider_GetEnvironmentIntegrationProvider_ParamsSpec.$,
null,
impl.getEnvironmentIntegrationProvider.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
device.mojom.XRFrameDataProvider = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "device.mojom.XRFrameDataProvider";
}
/**
* 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 {!device.mojom.XRFrameDataProviderRemote}
* @export
*/
static getRemote() {
let remote = new device.mojom.XRFrameDataProviderRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the XRFrameDataProvider
* 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
*/
device.mojom.XRFrameDataProviderCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRFrameDataProviderRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRFrameDataProviderRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.getFrameData =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRFrameDataProvider_GetFrameData_ParamsSpec.$,
device.mojom.XRFrameDataProvider_GetFrameData_ResponseParamsSpec.$,
this.getFrameData.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.getEnvironmentIntegrationProvider =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1,
device.mojom.XRFrameDataProvider_GetEnvironmentIntegrationProvider_ParamsSpec.$,
null,
this.getEnvironmentIntegrationProvider.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('device.mojom.XRPresentationProvider');
goog.provide('device.mojom.XRPresentationProviderReceiver');
goog.provide('device.mojom.XRPresentationProviderCallbackRouter');
goog.provide('device.mojom.XRPresentationProviderInterface');
goog.provide('device.mojom.XRPresentationProviderRemote');
goog.provide('device.mojom.XRPresentationProviderPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
device.mojom.XRPresentationProviderPendingReceiver = 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,
device.mojom.XRPresentationProvider.$interfaceName,
scope);
}
};
/** @interface */
device.mojom.XRPresentationProviderInterface = class {
/**
* @param { !number } frameId
* @param { !gfx.mojom.RectF } leftBounds
* @param { !gfx.mojom.RectF } rightBounds
* @param { !gfx.mojom.Size } sourceSize
*/
updateLayerBounds(frameId, leftBounds, rightBounds, sourceSize) {}
/**
* @param { !number } frameId
* @param { !gpu.mojom.SyncToken } syncToken
*/
submitFrameMissing(frameId, syncToken) {}
/**
* @param { !number } frameId
* @param { !gpu.mojom.MailboxHolder } mailboxHolder
* @param { !mojoBase.mojom.TimeDelta } timeWaited
*/
submitFrame(frameId, mailboxHolder, timeWaited) {}
/**
* @param { !number } frameId
* @param { !MojoHandle } texture
* @param { !gpu.mojom.SyncToken } syncToken
*/
submitFrameWithTextureHandle(frameId, texture, syncToken) {}
/**
* @param { !number } frameId
* @param { !gpu.mojom.SyncToken } syncToken
* @param { !mojoBase.mojom.TimeDelta } timeWaited
*/
submitFrameDrawnIntoTexture(frameId, syncToken, timeWaited) {}
};
/**
* @export
* @implements { device.mojom.XRPresentationProviderInterface }
*/
device.mojom.XRPresentationProviderRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!device.mojom.XRPresentationProviderPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
device.mojom.XRPresentationProviderPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!device.mojom.XRPresentationProviderPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !number } frameId
* @param { !gfx.mojom.RectF } leftBounds
* @param { !gfx.mojom.RectF } rightBounds
* @param { !gfx.mojom.Size } sourceSize
*/
updateLayerBounds(
frameId,
leftBounds,
rightBounds,
sourceSize) {
this.proxy.sendMessage(
0,
device.mojom.XRPresentationProvider_UpdateLayerBounds_ParamsSpec.$,
null,
[
frameId,
leftBounds,
rightBounds,
sourceSize
]);
}
/**
* @param { !number } frameId
* @param { !gpu.mojom.SyncToken } syncToken
*/
submitFrameMissing(
frameId,
syncToken) {
this.proxy.sendMessage(
1,
device.mojom.XRPresentationProvider_SubmitFrameMissing_ParamsSpec.$,
null,
[
frameId,
syncToken
]);
}
/**
* @param { !number } frameId
* @param { !gpu.mojom.MailboxHolder } mailboxHolder
* @param { !mojoBase.mojom.TimeDelta } timeWaited
*/
submitFrame(
frameId,
mailboxHolder,
timeWaited) {
this.proxy.sendMessage(
2,
device.mojom.XRPresentationProvider_SubmitFrame_ParamsSpec.$,
null,
[
frameId,
mailboxHolder,
timeWaited
]);
}
/**
* @param { !number } frameId
* @param { !MojoHandle } texture
* @param { !gpu.mojom.SyncToken } syncToken
*/
submitFrameWithTextureHandle(
frameId,
texture,
syncToken) {
this.proxy.sendMessage(
3,
device.mojom.XRPresentationProvider_SubmitFrameWithTextureHandle_ParamsSpec.$,
null,
[
frameId,
texture,
syncToken
]);
}
/**
* @param { !number } frameId
* @param { !gpu.mojom.SyncToken } syncToken
* @param { !mojoBase.mojom.TimeDelta } timeWaited
*/
submitFrameDrawnIntoTexture(
frameId,
syncToken,
timeWaited) {
this.proxy.sendMessage(
4,
device.mojom.XRPresentationProvider_SubmitFrameDrawnIntoTexture_ParamsSpec.$,
null,
[
frameId,
syncToken,
timeWaited
]);
}
};
/**
* An object which receives request messages for the XRPresentationProvider
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
device.mojom.XRPresentationProviderReceiver = class {
/**
* @param {!device.mojom.XRPresentationProviderInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!device.mojom.XRPresentationProviderRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRPresentationProviderRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRPresentationProviderRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRPresentationProvider_UpdateLayerBounds_ParamsSpec.$,
null,
impl.updateLayerBounds.bind(impl));
this.helper_internal_.registerHandler(
1,
device.mojom.XRPresentationProvider_SubmitFrameMissing_ParamsSpec.$,
null,
impl.submitFrameMissing.bind(impl));
this.helper_internal_.registerHandler(
2,
device.mojom.XRPresentationProvider_SubmitFrame_ParamsSpec.$,
null,
impl.submitFrame.bind(impl));
this.helper_internal_.registerHandler(
3,
device.mojom.XRPresentationProvider_SubmitFrameWithTextureHandle_ParamsSpec.$,
null,
impl.submitFrameWithTextureHandle.bind(impl));
this.helper_internal_.registerHandler(
4,
device.mojom.XRPresentationProvider_SubmitFrameDrawnIntoTexture_ParamsSpec.$,
null,
impl.submitFrameDrawnIntoTexture.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
device.mojom.XRPresentationProvider = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "device.mojom.XRPresentationProvider";
}
/**
* 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 {!device.mojom.XRPresentationProviderRemote}
* @export
*/
static getRemote() {
let remote = new device.mojom.XRPresentationProviderRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the XRPresentationProvider
* 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
*/
device.mojom.XRPresentationProviderCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRPresentationProviderRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRPresentationProviderRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.updateLayerBounds =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRPresentationProvider_UpdateLayerBounds_ParamsSpec.$,
null,
this.updateLayerBounds.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.submitFrameMissing =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1,
device.mojom.XRPresentationProvider_SubmitFrameMissing_ParamsSpec.$,
null,
this.submitFrameMissing.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.submitFrame =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
2,
device.mojom.XRPresentationProvider_SubmitFrame_ParamsSpec.$,
null,
this.submitFrame.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.submitFrameWithTextureHandle =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
3,
device.mojom.XRPresentationProvider_SubmitFrameWithTextureHandle_ParamsSpec.$,
null,
this.submitFrameWithTextureHandle.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.submitFrameDrawnIntoTexture =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
4,
device.mojom.XRPresentationProvider_SubmitFrameDrawnIntoTexture_ParamsSpec.$,
null,
this.submitFrameDrawnIntoTexture.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('device.mojom.XRPresentationClient');
goog.provide('device.mojom.XRPresentationClientReceiver');
goog.provide('device.mojom.XRPresentationClientCallbackRouter');
goog.provide('device.mojom.XRPresentationClientInterface');
goog.provide('device.mojom.XRPresentationClientRemote');
goog.provide('device.mojom.XRPresentationClientPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
device.mojom.XRPresentationClientPendingReceiver = 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,
device.mojom.XRPresentationClient.$interfaceName,
scope);
}
};
/** @interface */
device.mojom.XRPresentationClientInterface = class {
/**
* @param { !boolean } success
*/
onSubmitFrameTransferred(success) {}
/**
*/
onSubmitFrameRendered() {}
/**
* @param { !gfx.mojom.GpuFenceHandle } gpuFenceHandle
*/
onSubmitFrameGpuFence(gpuFenceHandle) {}
};
/**
* @export
* @implements { device.mojom.XRPresentationClientInterface }
*/
device.mojom.XRPresentationClientRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!device.mojom.XRPresentationClientPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
device.mojom.XRPresentationClientPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!device.mojom.XRPresentationClientPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !boolean } success
*/
onSubmitFrameTransferred(
success) {
this.proxy.sendMessage(
0,
device.mojom.XRPresentationClient_OnSubmitFrameTransferred_ParamsSpec.$,
null,
[
success
]);
}
/**
*/
onSubmitFrameRendered() {
this.proxy.sendMessage(
1,
device.mojom.XRPresentationClient_OnSubmitFrameRendered_ParamsSpec.$,
null,
[
]);
}
/**
* @param { !gfx.mojom.GpuFenceHandle } gpuFenceHandle
*/
onSubmitFrameGpuFence(
gpuFenceHandle) {
this.proxy.sendMessage(
2,
device.mojom.XRPresentationClient_OnSubmitFrameGpuFence_ParamsSpec.$,
null,
[
gpuFenceHandle
]);
}
};
/**
* An object which receives request messages for the XRPresentationClient
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
device.mojom.XRPresentationClientReceiver = class {
/**
* @param {!device.mojom.XRPresentationClientInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!device.mojom.XRPresentationClientRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRPresentationClientRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRPresentationClientRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRPresentationClient_OnSubmitFrameTransferred_ParamsSpec.$,
null,
impl.onSubmitFrameTransferred.bind(impl));
this.helper_internal_.registerHandler(
1,
device.mojom.XRPresentationClient_OnSubmitFrameRendered_ParamsSpec.$,
null,
impl.onSubmitFrameRendered.bind(impl));
this.helper_internal_.registerHandler(
2,
device.mojom.XRPresentationClient_OnSubmitFrameGpuFence_ParamsSpec.$,
null,
impl.onSubmitFrameGpuFence.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
device.mojom.XRPresentationClient = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "device.mojom.XRPresentationClient";
}
/**
* 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 {!device.mojom.XRPresentationClientRemote}
* @export
*/
static getRemote() {
let remote = new device.mojom.XRPresentationClientRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the XRPresentationClient
* 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
*/
device.mojom.XRPresentationClientCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRPresentationClientRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRPresentationClientRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.onSubmitFrameTransferred =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRPresentationClient_OnSubmitFrameTransferred_ParamsSpec.$,
null,
this.onSubmitFrameTransferred.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.onSubmitFrameRendered =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1,
device.mojom.XRPresentationClient_OnSubmitFrameRendered_ParamsSpec.$,
null,
this.onSubmitFrameRendered.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.onSubmitFrameGpuFence =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
2,
device.mojom.XRPresentationClient_OnSubmitFrameGpuFence_ParamsSpec.$,
null,
this.onSubmitFrameGpuFence.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('device.mojom.XRSessionClient');
goog.provide('device.mojom.XRSessionClientReceiver');
goog.provide('device.mojom.XRSessionClientCallbackRouter');
goog.provide('device.mojom.XRSessionClientInterface');
goog.provide('device.mojom.XRSessionClientRemote');
goog.provide('device.mojom.XRSessionClientPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
device.mojom.XRSessionClientPendingReceiver = 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,
device.mojom.XRSessionClient.$interfaceName,
scope);
}
};
/** @interface */
device.mojom.XRSessionClientInterface = class {
/**
*/
onExitPresent() {}
/**
* @param { !device.mojom.XRVisibilityState } visibilityState
*/
onVisibilityStateChanged(visibilityState) {}
};
/**
* @export
* @implements { device.mojom.XRSessionClientInterface }
*/
device.mojom.XRSessionClientRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!device.mojom.XRSessionClientPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
device.mojom.XRSessionClientPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!device.mojom.XRSessionClientPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
*/
onExitPresent() {
this.proxy.sendMessage(
0,
device.mojom.XRSessionClient_OnExitPresent_ParamsSpec.$,
null,
[
]);
}
/**
* @param { !device.mojom.XRVisibilityState } visibilityState
*/
onVisibilityStateChanged(
visibilityState) {
this.proxy.sendMessage(
1,
device.mojom.XRSessionClient_OnVisibilityStateChanged_ParamsSpec.$,
null,
[
visibilityState
]);
}
};
/**
* An object which receives request messages for the XRSessionClient
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
device.mojom.XRSessionClientReceiver = class {
/**
* @param {!device.mojom.XRSessionClientInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!device.mojom.XRSessionClientRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRSessionClientRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRSessionClientRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRSessionClient_OnExitPresent_ParamsSpec.$,
null,
impl.onExitPresent.bind(impl));
this.helper_internal_.registerHandler(
1,
device.mojom.XRSessionClient_OnVisibilityStateChanged_ParamsSpec.$,
null,
impl.onVisibilityStateChanged.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
device.mojom.XRSessionClient = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "device.mojom.XRSessionClient";
}
/**
* 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 {!device.mojom.XRSessionClientRemote}
* @export
*/
static getRemote() {
let remote = new device.mojom.XRSessionClientRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the XRSessionClient
* 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
*/
device.mojom.XRSessionClientCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
device.mojom.XRSessionClientRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!device.mojom.XRSessionClientRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.onExitPresent =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
device.mojom.XRSessionClient_OnExitPresent_ParamsSpec.$,
null,
this.onExitPresent.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.onVisibilityStateChanged =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1,
device.mojom.XRSessionClient_OnVisibilityStateChanged_ParamsSpec.$,
null,
this.onVisibilityStateChanged.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('device.mojom.XRDepthConfigSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRDepthConfigSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRSessionDeviceConfigSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRSessionDeviceConfigSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRSessionSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRSessionSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationConnectionSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationConnectionSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRInputSourceDescriptionSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRInputSourceDescriptionSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRHandJointDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRHandJointDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRHandTrackingDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRHandTrackingDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRInputSourceStateSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRInputSourceStateSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRFieldOfViewSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRFieldOfViewSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRPoseSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRPoseSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.PoseSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.PoseSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRRaySpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRRaySpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRHitResultSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRHitResultSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRViewSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRViewSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRStageParametersSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRStageParametersSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationTransportOptionsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationTransportOptionsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRInputSourceSpaceInfoSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRInputSourceSpaceInfoSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRHandJointSpaceInfoSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRHandJointSpaceInfoSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPlanePointDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPlanePointDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPlaneDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPlaneDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPlaneDetectionDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPlaneDetectionDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRAnchorDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRAnchorDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRAnchorsDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRAnchorsDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRHitTestSubscriptionResultDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRHitTestSubscriptionResultDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRHitTestTransientInputSubscriptionResultDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRHitTestTransientInputSubscriptionResultDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRHitTestSubscriptionResultsDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRHitTestSubscriptionResultsDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.RgbTupleF32Spec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.RgbTupleF32Spec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRSphericalHarmonicsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRSphericalHarmonicsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.RgbaTupleF16Spec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.RgbaTupleF16Spec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRCubeMapSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRCubeMapSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRLightProbeSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRLightProbeSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRReflectionProbeSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRReflectionProbeSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRLightEstimationDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRLightEstimationDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRDepthDataStillValidSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRDepthDataStillValidSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRDepthDataUpdatedSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRDepthDataUpdatedSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRTrackedImageDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRTrackedImageDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRTrackedImagesDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRTrackedImagesDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRFrameDataSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRFrameDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.RequestSessionSuccessSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.RequestSessionSuccessSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRFrameDataRequestOptionsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRFrameDataRequestOptionsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_SetClient_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_SetClient_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_RequestSession_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_RequestSession_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_RequestSession_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_RequestSession_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_SupportsSession_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_SupportsSession_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_SupportsSession_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_SupportsSession_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_ExitPresent_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_ExitPresent_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_ExitPresent_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_ExitPresent_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_SetFramesThrottled_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_SetFramesThrottled_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_MakeXrCompatible_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_MakeXrCompatible_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRService_MakeXrCompatible_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRService_MakeXrCompatible_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRSessionMetricsRecorder_ReportFeatureUsed_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRSessionMetricsRecorder_ReportFeatureUsed_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.VRServiceClient_OnDeviceChanged_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.VRServiceClient_OnDeviceChanged_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XREnvironmentIntegrationProvider_DetachAnchor_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XREnvironmentIntegrationProvider_DetachAnchor_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRFrameDataProvider_GetFrameData_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRFrameDataProvider_GetFrameData_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRFrameDataProvider_GetFrameData_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRFrameDataProvider_GetFrameData_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRFrameDataProvider_GetEnvironmentIntegrationProvider_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRFrameDataProvider_GetEnvironmentIntegrationProvider_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationProvider_UpdateLayerBounds_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationProvider_UpdateLayerBounds_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationProvider_SubmitFrameMissing_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationProvider_SubmitFrameMissing_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationProvider_SubmitFrame_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationProvider_SubmitFrame_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationProvider_SubmitFrameWithTextureHandle_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationProvider_SubmitFrameWithTextureHandle_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationProvider_SubmitFrameDrawnIntoTexture_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationProvider_SubmitFrameDrawnIntoTexture_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationClient_OnSubmitFrameTransferred_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationClient_OnSubmitFrameTransferred_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationClient_OnSubmitFrameRendered_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationClient_OnSubmitFrameRendered_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRPresentationClient_OnSubmitFrameGpuFence_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRPresentationClient_OnSubmitFrameGpuFence_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRSessionClient_OnExitPresent_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRSessionClient_OnExitPresent_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRSessionClient_OnVisibilityStateChanged_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
device.mojom.XRSessionClient_OnVisibilityStateChanged_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRNativeOriginInformationSpec');
/**
* @const { {$:!mojo.internal.MojomType} }
* @export
*/
device.mojom.XRNativeOriginInformationSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.XRDepthDataSpec');
/**
* @const { {$:!mojo.internal.MojomType} }
* @export
*/
device.mojom.XRDepthDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('device.mojom.RequestSessionResultSpec');
/**
* @const { {$:!mojo.internal.MojomType} }
* @export
*/
device.mojom.RequestSessionResultSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
device.mojom.XRDepthConfigSpec.$,
'XRDepthConfig',
[
mojo.internal.StructField(
'depthUsage', 0,
0,
device.mojom.XRDepthUsageSpec.$,
1,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'depthDataFormat', 4,
0,
device.mojom.XRDepthDataFormatSpec.$,
1,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRDepthConfig');
/** @record */
device.mojom.XRDepthConfig = class {
constructor() {
/** @export { !device.mojom.XRDepthUsage } */
this.depthUsage;
/** @export { !device.mojom.XRDepthDataFormat } */
this.depthDataFormat;
}
};
mojo.internal.Struct(
device.mojom.XRSessionDeviceConfigSpec.$,
'XRSessionDeviceConfig',
[
mojo.internal.StructField(
'defaultFramebufferScale', 0,
0,
mojo.internal.Float,
1.0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'views', 8,
0,
mojo.internal.Array(device.mojom.XRViewSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'supportsViewportScaling', 4,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'enableAntiAliasing', 4,
1,
mojo.internal.Bool,
true,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'depthConfiguration', 16,
0,
device.mojom.XRDepthConfigSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XRSessionDeviceConfig');
/** @record */
device.mojom.XRSessionDeviceConfig = class {
constructor() {
/** @export { !number } */
this.defaultFramebufferScale;
/** @export { !Array<!device.mojom.XRView> } */
this.views;
/** @export { !boolean } */
this.supportsViewportScaling;
/** @export { !boolean } */
this.enableAntiAliasing;
/** @export { (device.mojom.XRDepthConfig|undefined) } */
this.depthConfiguration;
}
};
mojo.internal.Struct(
device.mojom.XRSessionSpec.$,
'XRSession',
[
mojo.internal.StructField(
'dataProvider', 0,
0,
mojo.internal.InterfaceProxy(device.mojom.XRFrameDataProviderRemote),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'clientReceiver', 8,
0,
mojo.internal.InterfaceRequest(device.mojom.XRSessionClientPendingReceiver),
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'submitFrameSink', 16,
0,
device.mojom.XRPresentationConnectionSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'enabledFeatures', 24,
0,
mojo.internal.Array(device.mojom.XRSessionFeatureSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'deviceConfig', 32,
0,
device.mojom.XRSessionDeviceConfigSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'enviromentBlendMode', 12,
0,
device.mojom.XREnvironmentBlendModeSpec.$,
1,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'interactionMode', 40,
0,
device.mojom.XRInteractionModeSpec.$,
1,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 56],]);
goog.provide('device.mojom.XRSession');
/** @record */
device.mojom.XRSession = class {
constructor() {
/** @export { !device.mojom.XRFrameDataProviderRemote } */
this.dataProvider;
/** @export { (device.mojom.XRSessionClientPendingReceiver|undefined) } */
this.clientReceiver;
/** @export { (device.mojom.XRPresentationConnection|undefined) } */
this.submitFrameSink;
/** @export { !Array<!device.mojom.XRSessionFeature> } */
this.enabledFeatures;
/** @export { !device.mojom.XRSessionDeviceConfig } */
this.deviceConfig;
/** @export { !device.mojom.XREnvironmentBlendMode } */
this.enviromentBlendMode;
/** @export { !device.mojom.XRInteractionMode } */
this.interactionMode;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationConnectionSpec.$,
'XRPresentationConnection',
[
mojo.internal.StructField(
'provider', 0,
0,
mojo.internal.InterfaceProxy(device.mojom.XRPresentationProviderRemote),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'clientReceiver', 8,
0,
mojo.internal.InterfaceRequest(device.mojom.XRPresentationClientPendingReceiver),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'transportOptions', 16,
0,
device.mojom.XRPresentationTransportOptionsSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XRPresentationConnection');
/** @record */
device.mojom.XRPresentationConnection = class {
constructor() {
/** @export { !device.mojom.XRPresentationProviderRemote } */
this.provider;
/** @export { !device.mojom.XRPresentationClientPendingReceiver } */
this.clientReceiver;
/** @export { !device.mojom.XRPresentationTransportOptions } */
this.transportOptions;
}
};
mojo.internal.Struct(
device.mojom.XRInputSourceDescriptionSpec.$,
'XRInputSourceDescription',
[
mojo.internal.StructField(
'targetRayMode', 0,
0,
device.mojom.XRTargetRayModeSpec.$,
1,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'handedness', 4,
0,
device.mojom.XRHandednessSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'inputFromPointer', 8,
0,
gfx.mojom.TransformSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'profiles', 16,
0,
mojo.internal.Array(mojo.internal.String, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XRInputSourceDescription');
/** @record */
device.mojom.XRInputSourceDescription = class {
constructor() {
/** @export { !device.mojom.XRTargetRayMode } */
this.targetRayMode;
/** @export { !device.mojom.XRHandedness } */
this.handedness;
/** @export { (gfx.mojom.Transform|undefined) } */
this.inputFromPointer;
/** @export { !Array<!string> } */
this.profiles;
}
};
mojo.internal.Struct(
device.mojom.XRHandJointDataSpec.$,
'XRHandJointData',
[
mojo.internal.StructField(
'joint', 0,
0,
device.mojom.XRHandJointSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mojoFromJoint', 8,
0,
gfx.mojom.TransformSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'radius', 4,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRHandJointData');
/** @record */
device.mojom.XRHandJointData = class {
constructor() {
/** @export { !device.mojom.XRHandJoint } */
this.joint;
/** @export { (gfx.mojom.Transform|undefined) } */
this.mojoFromJoint;
/** @export { !number } */
this.radius;
}
};
mojo.internal.Struct(
device.mojom.XRHandTrackingDataSpec.$,
'XRHandTrackingData',
[
mojo.internal.StructField(
'handJointData', 0,
0,
mojo.internal.Array(device.mojom.XRHandJointDataSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRHandTrackingData');
/** @record */
device.mojom.XRHandTrackingData = class {
constructor() {
/** @export { !Array<!device.mojom.XRHandJointData> } */
this.handJointData;
}
};
mojo.internal.Struct(
device.mojom.XRInputSourceStateSpec.$,
'XRInputSourceState',
[
mojo.internal.StructField(
'sourceId', 0,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'description', 8,
0,
device.mojom.XRInputSourceDescriptionSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mojoFromInput', 16,
0,
gfx.mojom.TransformSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'emulatedPosition', 4,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'isAuxiliary', 4,
1,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'primaryInputPressed', 4,
2,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'primaryInputClicked', 4,
3,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'primarySqueezePressed', 4,
4,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'primarySqueezeClicked', 4,
5,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'gamepad', 24,
0,
device.mojom.GamepadSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'overlayPointerPosition', 32,
0,
gfx.mojom.PointFSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'handTrackingData', 40,
0,
device.mojom.XRHandTrackingDataSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 56],]);
goog.provide('device.mojom.XRInputSourceState');
/** @record */
device.mojom.XRInputSourceState = class {
constructor() {
/** @export { !number } */
this.sourceId;
/** @export { (device.mojom.XRInputSourceDescription|undefined) } */
this.description;
/** @export { (gfx.mojom.Transform|undefined) } */
this.mojoFromInput;
/** @export { !boolean } */
this.emulatedPosition;
/** @export { !boolean } */
this.isAuxiliary;
/** @export { !boolean } */
this.primaryInputPressed;
/** @export { !boolean } */
this.primaryInputClicked;
/** @export { !boolean } */
this.primarySqueezePressed;
/** @export { !boolean } */
this.primarySqueezeClicked;
/** @export { (device.mojom.Gamepad|undefined) } */
this.gamepad;
/** @export { (gfx.mojom.PointF|undefined) } */
this.overlayPointerPosition;
/** @export { (device.mojom.XRHandTrackingData|undefined) } */
this.handTrackingData;
}
};
mojo.internal.Struct(
device.mojom.VRFieldOfViewSpec.$,
'VRFieldOfView',
[
mojo.internal.StructField(
'upDegrees', 0,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'downDegrees', 4,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'leftDegrees', 8,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'rightDegrees', 12,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.VRFieldOfView');
/** @record */
device.mojom.VRFieldOfView = class {
constructor() {
/** @export { !number } */
this.upDegrees;
/** @export { !number } */
this.downDegrees;
/** @export { !number } */
this.leftDegrees;
/** @export { !number } */
this.rightDegrees;
}
};
mojo.internal.Struct(
device.mojom.VRPoseSpec.$,
'VRPose',
[
mojo.internal.StructField(
'orientation', 0,
0,
gfx.mojom.QuaternionSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'position', 8,
0,
gfx.mojom.Point3FSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'emulatedPosition', 16,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.VRPose');
/** @record */
device.mojom.VRPose = class {
constructor() {
/** @export { (gfx.mojom.Quaternion|undefined) } */
this.orientation;
/** @export { (gfx.mojom.Point3F|undefined) } */
this.position;
/** @export { !boolean } */
this.emulatedPosition;
}
};
mojo.internal.Struct(
device.mojom.PoseSpec.$,
'Pose',
[
mojo.internal.StructField(
'orientation', 0,
0,
gfx.mojom.QuaternionSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'position', 8,
0,
gfx.mojom.Point3FSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.Pose');
/** @record */
device.mojom.Pose = class {
constructor() {
/** @export { !gfx.mojom.Quaternion } */
this.orientation;
/** @export { !gfx.mojom.Point3F } */
this.position;
}
};
mojo.internal.Struct(
device.mojom.XRRaySpec.$,
'XRRay',
[
mojo.internal.StructField(
'origin', 0,
0,
gfx.mojom.Point3FSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'direction', 8,
0,
gfx.mojom.Vector3dFSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRRay');
/** @record */
device.mojom.XRRay = class {
constructor() {
/** @export { !gfx.mojom.Point3F } */
this.origin;
/** @export { !gfx.mojom.Vector3dF } */
this.direction;
}
};
mojo.internal.Struct(
device.mojom.XRHitResultSpec.$,
'XRHitResult',
[
mojo.internal.StructField(
'mojoFromResult', 0,
0,
device.mojom.PoseSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'planeId', 8,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRHitResult');
/** @record */
device.mojom.XRHitResult = class {
constructor() {
/** @export { !device.mojom.Pose } */
this.mojoFromResult;
/** @export { !bigint } */
this.planeId;
}
};
mojo.internal.Struct(
device.mojom.XRViewSpec.$,
'XRView',
[
mojo.internal.StructField(
'eye', 0,
0,
device.mojom.XREyeSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'fieldOfView', 8,
0,
device.mojom.VRFieldOfViewSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mojoFromView', 16,
0,
gfx.mojom.TransformSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'viewport', 24,
0,
gfx.mojom.RectSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'isFirstPersonObserver', 4,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 40],]);
goog.provide('device.mojom.XRView');
/** @record */
device.mojom.XRView = class {
constructor() {
/** @export { !device.mojom.XREye } */
this.eye;
/** @export { !device.mojom.VRFieldOfView } */
this.fieldOfView;
/** @export { !gfx.mojom.Transform } */
this.mojoFromView;
/** @export { !gfx.mojom.Rect } */
this.viewport;
/** @export { !boolean } */
this.isFirstPersonObserver;
}
};
mojo.internal.Struct(
device.mojom.VRStageParametersSpec.$,
'VRStageParameters',
[
mojo.internal.StructField(
'mojoFromFloor', 0,
0,
gfx.mojom.TransformSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'bounds', 8,
0,
mojo.internal.Array(gfx.mojom.Point3FSpec.$, false),
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.VRStageParameters');
/** @record */
device.mojom.VRStageParameters = class {
constructor() {
/** @export { !gfx.mojom.Transform } */
this.mojoFromFloor;
/** @export { (Array<!gfx.mojom.Point3F>|undefined) } */
this.bounds;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationTransportOptionsSpec.$,
'XRPresentationTransportOptions',
[
mojo.internal.StructField(
'transportMethod', 0,
0,
device.mojom.XRPresentationTransportMethodSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'waitForTransferNotification', 4,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'waitForRenderNotification', 4,
1,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'waitForGpuFence', 4,
2,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRPresentationTransportOptions');
/** @record */
device.mojom.XRPresentationTransportOptions = class {
constructor() {
/** @export { !device.mojom.XRPresentationTransportMethod } */
this.transportMethod;
/** @export { !boolean } */
this.waitForTransferNotification;
/** @export { !boolean } */
this.waitForRenderNotification;
/** @export { !boolean } */
this.waitForGpuFence;
}
};
mojo.internal.Struct(
device.mojom.XRInputSourceSpaceInfoSpec.$,
'XRInputSourceSpaceInfo',
[
mojo.internal.StructField(
'inputSourceId', 0,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'inputSourceSpaceType', 4,
0,
device.mojom.XRInputSourceSpaceTypeSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRInputSourceSpaceInfo');
/** @record */
device.mojom.XRInputSourceSpaceInfo = class {
constructor() {
/** @export { !number } */
this.inputSourceId;
/** @export { !device.mojom.XRInputSourceSpaceType } */
this.inputSourceSpaceType;
}
};
mojo.internal.Struct(
device.mojom.XRHandJointSpaceInfoSpec.$,
'XRHandJointSpaceInfo',
[
mojo.internal.StructField(
'handedness', 0,
0,
device.mojom.XRHandednessSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'joint', 4,
0,
device.mojom.XRHandJointSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRHandJointSpaceInfo');
/** @record */
device.mojom.XRHandJointSpaceInfo = class {
constructor() {
/** @export { !device.mojom.XRHandedness } */
this.handedness;
/** @export { !device.mojom.XRHandJoint } */
this.joint;
}
};
mojo.internal.Struct(
device.mojom.XRPlanePointDataSpec.$,
'XRPlanePointData',
[
mojo.internal.StructField(
'x', 0,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'z', 4,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRPlanePointData');
/** @record */
device.mojom.XRPlanePointData = class {
constructor() {
/** @export { !number } */
this.x;
/** @export { !number } */
this.z;
}
};
mojo.internal.Struct(
device.mojom.XRPlaneDataSpec.$,
'XRPlaneData',
[
mojo.internal.StructField(
'id', 0,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'orientation', 8,
0,
device.mojom.XRPlaneOrientationSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mojoFromPlane', 16,
0,
device.mojom.PoseSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'polygon', 24,
0,
mojo.internal.Array(device.mojom.XRPlanePointDataSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 40],]);
goog.provide('device.mojom.XRPlaneData');
/** @record */
device.mojom.XRPlaneData = class {
constructor() {
/** @export { !bigint } */
this.id;
/** @export { !device.mojom.XRPlaneOrientation } */
this.orientation;
/** @export { (device.mojom.Pose|undefined) } */
this.mojoFromPlane;
/** @export { !Array<!device.mojom.XRPlanePointData> } */
this.polygon;
}
};
mojo.internal.Struct(
device.mojom.XRPlaneDetectionDataSpec.$,
'XRPlaneDetectionData',
[
mojo.internal.StructField(
'allPlanesIds', 0,
0,
mojo.internal.Array(mojo.internal.Uint64, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'updatedPlanesData', 8,
0,
mojo.internal.Array(device.mojom.XRPlaneDataSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRPlaneDetectionData');
/** @record */
device.mojom.XRPlaneDetectionData = class {
constructor() {
/** @export { !Array<!bigint> } */
this.allPlanesIds;
/** @export { !Array<!device.mojom.XRPlaneData> } */
this.updatedPlanesData;
}
};
mojo.internal.Struct(
device.mojom.XRAnchorDataSpec.$,
'XRAnchorData',
[
mojo.internal.StructField(
'id', 0,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mojoFromAnchor', 8,
0,
device.mojom.PoseSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRAnchorData');
/** @record */
device.mojom.XRAnchorData = class {
constructor() {
/** @export { !bigint } */
this.id;
/** @export { (device.mojom.Pose|undefined) } */
this.mojoFromAnchor;
}
};
mojo.internal.Struct(
device.mojom.XRAnchorsDataSpec.$,
'XRAnchorsData',
[
mojo.internal.StructField(
'allAnchorsIds', 0,
0,
mojo.internal.Array(mojo.internal.Uint64, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'updatedAnchorsData', 8,
0,
mojo.internal.Array(device.mojom.XRAnchorDataSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRAnchorsData');
/** @record */
device.mojom.XRAnchorsData = class {
constructor() {
/** @export { !Array<!bigint> } */
this.allAnchorsIds;
/** @export { !Array<!device.mojom.XRAnchorData> } */
this.updatedAnchorsData;
}
};
mojo.internal.Struct(
device.mojom.XRHitTestSubscriptionResultDataSpec.$,
'XRHitTestSubscriptionResultData',
[
mojo.internal.StructField(
'subscriptionId', 0,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'hitTestResults', 8,
0,
mojo.internal.Array(device.mojom.XRHitResultSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRHitTestSubscriptionResultData');
/** @record */
device.mojom.XRHitTestSubscriptionResultData = class {
constructor() {
/** @export { !bigint } */
this.subscriptionId;
/** @export { !Array<!device.mojom.XRHitResult> } */
this.hitTestResults;
}
};
mojo.internal.Struct(
device.mojom.XRHitTestTransientInputSubscriptionResultDataSpec.$,
'XRHitTestTransientInputSubscriptionResultData',
[
mojo.internal.StructField(
'subscriptionId', 0,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'inputSourceIdToHitTestResults', 8,
0,
mojo.internal.Map(mojo.internal.Uint32, mojo.internal.Array(device.mojom.XRHitResultSpec.$, false), false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRHitTestTransientInputSubscriptionResultData');
/** @record */
device.mojom.XRHitTestTransientInputSubscriptionResultData = class {
constructor() {
/** @export { !bigint } */
this.subscriptionId;
/** @export { !Object<!number, !Array<!device.mojom.XRHitResult>> } */
this.inputSourceIdToHitTestResults;
}
};
mojo.internal.Struct(
device.mojom.XRHitTestSubscriptionResultsDataSpec.$,
'XRHitTestSubscriptionResultsData',
[
mojo.internal.StructField(
'results', 0,
0,
mojo.internal.Array(device.mojom.XRHitTestSubscriptionResultDataSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'transientInputResults', 8,
0,
mojo.internal.Array(device.mojom.XRHitTestTransientInputSubscriptionResultDataSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRHitTestSubscriptionResultsData');
/** @record */
device.mojom.XRHitTestSubscriptionResultsData = class {
constructor() {
/** @export { !Array<!device.mojom.XRHitTestSubscriptionResultData> } */
this.results;
/** @export { !Array<!device.mojom.XRHitTestTransientInputSubscriptionResultData> } */
this.transientInputResults;
}
};
mojo.internal.Struct(
device.mojom.RgbTupleF32Spec.$,
'RgbTupleF32',
[
mojo.internal.StructField(
'red', 0,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'green', 4,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'blue', 8,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.RgbTupleF32');
/** @record */
device.mojom.RgbTupleF32 = class {
constructor() {
/** @export { !number } */
this.red;
/** @export { !number } */
this.green;
/** @export { !number } */
this.blue;
}
};
mojo.internal.Struct(
device.mojom.XRSphericalHarmonicsSpec.$,
'XRSphericalHarmonics',
[
mojo.internal.StructField(
'coefficients', 0,
0,
mojo.internal.Array(device.mojom.RgbTupleF32Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRSphericalHarmonics');
/** @record */
device.mojom.XRSphericalHarmonics = class {
constructor() {
/** @export { !Array<!device.mojom.RgbTupleF32> } */
this.coefficients;
}
};
mojo.internal.Struct(
device.mojom.RgbaTupleF16Spec.$,
'RgbaTupleF16',
[
mojo.internal.StructField(
'red', 0,
0,
mojo.internal.Uint16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'green', 2,
0,
mojo.internal.Uint16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'blue', 4,
0,
mojo.internal.Uint16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'alpha', 6,
0,
mojo.internal.Uint16,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.RgbaTupleF16');
/** @record */
device.mojom.RgbaTupleF16 = class {
constructor() {
/** @export { !number } */
this.red;
/** @export { !number } */
this.green;
/** @export { !number } */
this.blue;
/** @export { !number } */
this.alpha;
}
};
/**
* @const { !bigint }
* @export
*/
device.mojom.XRCubeMap_NUM_COMPONENTS_PER_PIXEL =
BigInt('4');
mojo.internal.Struct(
device.mojom.XRCubeMapSpec.$,
'XRCubeMap',
[
mojo.internal.StructField(
'widthAndHeight', 0,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'positiveX', 8,
0,
mojo.internal.Array(device.mojom.RgbaTupleF16Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'negativeX', 16,
0,
mojo.internal.Array(device.mojom.RgbaTupleF16Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'positiveY', 24,
0,
mojo.internal.Array(device.mojom.RgbaTupleF16Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'negativeY', 32,
0,
mojo.internal.Array(device.mojom.RgbaTupleF16Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'positiveZ', 40,
0,
mojo.internal.Array(device.mojom.RgbaTupleF16Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'negativeZ', 48,
0,
mojo.internal.Array(device.mojom.RgbaTupleF16Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 64],]);
goog.provide('device.mojom.XRCubeMap');
/** @record */
device.mojom.XRCubeMap = class {
constructor() {
/** @export { !number } */
this.widthAndHeight;
/** @export { !Array<!device.mojom.RgbaTupleF16> } */
this.positiveX;
/** @export { !Array<!device.mojom.RgbaTupleF16> } */
this.negativeX;
/** @export { !Array<!device.mojom.RgbaTupleF16> } */
this.positiveY;
/** @export { !Array<!device.mojom.RgbaTupleF16> } */
this.negativeY;
/** @export { !Array<!device.mojom.RgbaTupleF16> } */
this.positiveZ;
/** @export { !Array<!device.mojom.RgbaTupleF16> } */
this.negativeZ;
}
};
mojo.internal.Struct(
device.mojom.XRLightProbeSpec.$,
'XRLightProbe',
[
mojo.internal.StructField(
'sphericalHarmonics', 0,
0,
device.mojom.XRSphericalHarmonicsSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mainLightDirection', 8,
0,
gfx.mojom.Vector3dFSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mainLightIntensity', 16,
0,
device.mojom.RgbTupleF32Spec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XRLightProbe');
/** @record */
device.mojom.XRLightProbe = class {
constructor() {
/** @export { !device.mojom.XRSphericalHarmonics } */
this.sphericalHarmonics;
/** @export { !gfx.mojom.Vector3dF } */
this.mainLightDirection;
/** @export { !device.mojom.RgbTupleF32 } */
this.mainLightIntensity;
}
};
mojo.internal.Struct(
device.mojom.XRReflectionProbeSpec.$,
'XRReflectionProbe',
[
mojo.internal.StructField(
'cubeMap', 0,
0,
device.mojom.XRCubeMapSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRReflectionProbe');
/** @record */
device.mojom.XRReflectionProbe = class {
constructor() {
/** @export { !device.mojom.XRCubeMap } */
this.cubeMap;
}
};
mojo.internal.Struct(
device.mojom.XRLightEstimationDataSpec.$,
'XRLightEstimationData',
[
mojo.internal.StructField(
'lightProbe', 0,
0,
device.mojom.XRLightProbeSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'reflectionProbe', 8,
0,
device.mojom.XRReflectionProbeSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRLightEstimationData');
/** @record */
device.mojom.XRLightEstimationData = class {
constructor() {
/** @export { (device.mojom.XRLightProbe|undefined) } */
this.lightProbe;
/** @export { (device.mojom.XRReflectionProbe|undefined) } */
this.reflectionProbe;
}
};
mojo.internal.Struct(
device.mojom.XRDepthDataStillValidSpec.$,
'XRDepthDataStillValid',
[
],
[[0, 8],]);
goog.provide('device.mojom.XRDepthDataStillValid');
/** @record */
device.mojom.XRDepthDataStillValid = class {
constructor() {
}
};
mojo.internal.Struct(
device.mojom.XRDepthDataUpdatedSpec.$,
'XRDepthDataUpdated',
[
mojo.internal.StructField(
'timeDelta', 0,
0,
mojoBase.mojom.TimeDeltaSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'pixelData', 8,
0,
mojoBase.mojom.BigBufferSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'normTextureFromNormView', 24,
0,
gfx.mojom.TransformSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'size', 32,
0,
gfx.mojom.SizeSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'rawValueToMeters', 40,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 56],]);
goog.provide('device.mojom.XRDepthDataUpdated');
/** @record */
device.mojom.XRDepthDataUpdated = class {
constructor() {
/** @export { !mojoBase.mojom.TimeDelta } */
this.timeDelta;
/** @export { !mojoBase.mojom.BigBuffer } */
this.pixelData;
/** @export { !gfx.mojom.Transform } */
this.normTextureFromNormView;
/** @export { !gfx.mojom.Size } */
this.size;
/** @export { !number } */
this.rawValueToMeters;
}
};
mojo.internal.Struct(
device.mojom.XRTrackedImageDataSpec.$,
'XRTrackedImageData',
[
mojo.internal.StructField(
'index', 0,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mojoFromImage', 8,
0,
device.mojom.PoseSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'activelyTracked', 4,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'widthInMeters', 16,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XRTrackedImageData');
/** @record */
device.mojom.XRTrackedImageData = class {
constructor() {
/** @export { !number } */
this.index;
/** @export { !device.mojom.Pose } */
this.mojoFromImage;
/** @export { !boolean } */
this.activelyTracked;
/** @export { !number } */
this.widthInMeters;
}
};
mojo.internal.Struct(
device.mojom.XRTrackedImagesDataSpec.$,
'XRTrackedImagesData',
[
mojo.internal.StructField(
'imagesData', 0,
0,
mojo.internal.Array(device.mojom.XRTrackedImageDataSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'imageTrackableScores', 8,
0,
mojo.internal.Array(mojo.internal.Bool, false),
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRTrackedImagesData');
/** @record */
device.mojom.XRTrackedImagesData = class {
constructor() {
/** @export { !Array<!device.mojom.XRTrackedImageData> } */
this.imagesData;
/** @export { (Array<!boolean>|undefined) } */
this.imageTrackableScores;
}
};
mojo.internal.Struct(
device.mojom.XRFrameDataSpec.$,
'XRFrameData',
[
mojo.internal.StructField(
'mojoFromViewer', 0,
0,
device.mojom.VRPoseSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'timeDelta', 8,
0,
mojoBase.mojom.TimeDeltaSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'bufferSharedImage', 16,
0,
gpu.mojom.ExportedSharedImageSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'bufferSyncToken', 24,
0,
gpu.mojom.SyncTokenSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'cameraImageBufferSharedImage', 32,
0,
gpu.mojom.ExportedSharedImageSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'cameraImageBufferSyncToken', 40,
0,
gpu.mojom.SyncTokenSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'cameraImageSize', 48,
0,
gfx.mojom.SizeSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'depthData', 56,
0,
device.mojom.XRDepthDataSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mojoSpaceReset', 72,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'frameId', 74,
0,
mojo.internal.Int16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'views', 80,
0,
mojo.internal.Array(device.mojom.XRViewSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'inputState', 88,
0,
mojo.internal.Array(device.mojom.XRInputSourceStateSpec.$, false),
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'stageParametersId', 76,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'stageParameters', 96,
0,
device.mojom.VRStageParametersSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'detectedPlanesData', 104,
0,
device.mojom.XRPlaneDetectionDataSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'anchorsData', 112,
0,
device.mojom.XRAnchorsDataSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'lightEstimationData', 120,
0,
device.mojom.XRLightEstimationDataSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'hitTestSubscriptionResults', 128,
0,
device.mojom.XRHitTestSubscriptionResultsDataSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'renderingTimeRatio', 136,
0,
mojo.internal.Float,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'trackedImages', 144,
0,
device.mojom.XRTrackedImagesDataSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 160],]);
goog.provide('device.mojom.XRFrameData');
/** @record */
device.mojom.XRFrameData = class {
constructor() {
/** @export { (device.mojom.VRPose|undefined) } */
this.mojoFromViewer;
/** @export { !mojoBase.mojom.TimeDelta } */
this.timeDelta;
/** @export { (gpu.mojom.ExportedSharedImage|undefined) } */
this.bufferSharedImage;
/** @export { (gpu.mojom.SyncToken|undefined) } */
this.bufferSyncToken;
/** @export { (gpu.mojom.ExportedSharedImage|undefined) } */
this.cameraImageBufferSharedImage;
/** @export { (gpu.mojom.SyncToken|undefined) } */
this.cameraImageBufferSyncToken;
/** @export { (gfx.mojom.Size|undefined) } */
this.cameraImageSize;
/** @export { (device.mojom.XRDepthData|undefined) } */
this.depthData;
/** @export { !boolean } */
this.mojoSpaceReset;
/** @export { !number } */
this.frameId;
/** @export { !Array<!device.mojom.XRView> } */
this.views;
/** @export { (Array<!device.mojom.XRInputSourceState>|undefined) } */
this.inputState;
/** @export { !number } */
this.stageParametersId;
/** @export { (device.mojom.VRStageParameters|undefined) } */
this.stageParameters;
/** @export { (device.mojom.XRPlaneDetectionData|undefined) } */
this.detectedPlanesData;
/** @export { (device.mojom.XRAnchorsData|undefined) } */
this.anchorsData;
/** @export { (device.mojom.XRLightEstimationData|undefined) } */
this.lightEstimationData;
/** @export { (device.mojom.XRHitTestSubscriptionResultsData|undefined) } */
this.hitTestSubscriptionResults;
/** @export { !number } */
this.renderingTimeRatio;
/** @export { (device.mojom.XRTrackedImagesData|undefined) } */
this.trackedImages;
}
};
mojo.internal.Struct(
device.mojom.RequestSessionSuccessSpec.$,
'RequestSessionSuccess',
[
mojo.internal.StructField(
'session', 0,
0,
device.mojom.XRSessionSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'metricsRecorder', 8,
0,
mojo.internal.InterfaceProxy(device.mojom.XRSessionMetricsRecorderRemote),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.RequestSessionSuccess');
/** @record */
device.mojom.RequestSessionSuccess = class {
constructor() {
/** @export { !device.mojom.XRSession } */
this.session;
/** @export { !device.mojom.XRSessionMetricsRecorderRemote } */
this.metricsRecorder;
}
};
mojo.internal.Struct(
device.mojom.XRFrameDataRequestOptionsSpec.$,
'XRFrameDataRequestOptions',
[
mojo.internal.StructField(
'includeLightingEstimationData', 0,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'stageParametersId', 4,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRFrameDataRequestOptions');
/** @record */
device.mojom.XRFrameDataRequestOptions = class {
constructor() {
/** @export { !boolean } */
this.includeLightingEstimationData;
/** @export { !number } */
this.stageParametersId;
}
};
mojo.internal.Struct(
device.mojom.VRService_SetClient_ParamsSpec.$,
'VRService_SetClient_Params',
[
mojo.internal.StructField(
'client', 0,
0,
mojo.internal.InterfaceProxy(device.mojom.VRServiceClientRemote),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.VRService_SetClient_Params');
/** @record */
device.mojom.VRService_SetClient_Params = class {
constructor() {
/** @export { !device.mojom.VRServiceClientRemote } */
this.client;
}
};
mojo.internal.Struct(
device.mojom.VRService_RequestSession_ParamsSpec.$,
'VRService_RequestSession_Params',
[
mojo.internal.StructField(
'options', 0,
0,
device.mojom.XRSessionOptionsSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.VRService_RequestSession_Params');
/** @record */
device.mojom.VRService_RequestSession_Params = class {
constructor() {
/** @export { !device.mojom.XRSessionOptions } */
this.options;
}
};
mojo.internal.Struct(
device.mojom.VRService_RequestSession_ResponseParamsSpec.$,
'VRService_RequestSession_ResponseParams',
[
mojo.internal.StructField(
'result', 0,
0,
device.mojom.RequestSessionResultSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.VRService_RequestSession_ResponseParams');
/** @record */
device.mojom.VRService_RequestSession_ResponseParams = class {
constructor() {
/** @export { !device.mojom.RequestSessionResult } */
this.result;
}
};
mojo.internal.Struct(
device.mojom.VRService_SupportsSession_ParamsSpec.$,
'VRService_SupportsSession_Params',
[
mojo.internal.StructField(
'options', 0,
0,
device.mojom.XRSessionOptionsSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.VRService_SupportsSession_Params');
/** @record */
device.mojom.VRService_SupportsSession_Params = class {
constructor() {
/** @export { !device.mojom.XRSessionOptions } */
this.options;
}
};
mojo.internal.Struct(
device.mojom.VRService_SupportsSession_ResponseParamsSpec.$,
'VRService_SupportsSession_ResponseParams',
[
mojo.internal.StructField(
'supportsSession', 0,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.VRService_SupportsSession_ResponseParams');
/** @record */
device.mojom.VRService_SupportsSession_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.supportsSession;
}
};
mojo.internal.Struct(
device.mojom.VRService_ExitPresent_ParamsSpec.$,
'VRService_ExitPresent_Params',
[
],
[[0, 8],]);
goog.provide('device.mojom.VRService_ExitPresent_Params');
/** @record */
device.mojom.VRService_ExitPresent_Params = class {
constructor() {
}
};
mojo.internal.Struct(
device.mojom.VRService_ExitPresent_ResponseParamsSpec.$,
'VRService_ExitPresent_ResponseParams',
[
],
[[0, 8],]);
goog.provide('device.mojom.VRService_ExitPresent_ResponseParams');
/** @record */
device.mojom.VRService_ExitPresent_ResponseParams = class {
constructor() {
}
};
mojo.internal.Struct(
device.mojom.VRService_SetFramesThrottled_ParamsSpec.$,
'VRService_SetFramesThrottled_Params',
[
mojo.internal.StructField(
'throttled', 0,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.VRService_SetFramesThrottled_Params');
/** @record */
device.mojom.VRService_SetFramesThrottled_Params = class {
constructor() {
/** @export { !boolean } */
this.throttled;
}
};
mojo.internal.Struct(
device.mojom.VRService_MakeXrCompatible_ParamsSpec.$,
'VRService_MakeXrCompatible_Params',
[
],
[[0, 8],]);
goog.provide('device.mojom.VRService_MakeXrCompatible_Params');
/** @record */
device.mojom.VRService_MakeXrCompatible_Params = class {
constructor() {
}
};
mojo.internal.Struct(
device.mojom.VRService_MakeXrCompatible_ResponseParamsSpec.$,
'VRService_MakeXrCompatible_ResponseParams',
[
mojo.internal.StructField(
'xrCompatibleResult', 0,
0,
device.mojom.XrCompatibleResultSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.VRService_MakeXrCompatible_ResponseParams');
/** @record */
device.mojom.VRService_MakeXrCompatible_ResponseParams = class {
constructor() {
/** @export { !device.mojom.XrCompatibleResult } */
this.xrCompatibleResult;
}
};
mojo.internal.Struct(
device.mojom.XRSessionMetricsRecorder_ReportFeatureUsed_ParamsSpec.$,
'XRSessionMetricsRecorder_ReportFeatureUsed_Params',
[
mojo.internal.StructField(
'feature', 0,
0,
device.mojom.XRSessionFeatureSpec.$,
1,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRSessionMetricsRecorder_ReportFeatureUsed_Params');
/** @record */
device.mojom.XRSessionMetricsRecorder_ReportFeatureUsed_Params = class {
constructor() {
/** @export { !device.mojom.XRSessionFeature } */
this.feature;
}
};
mojo.internal.Struct(
device.mojom.VRServiceClient_OnDeviceChanged_ParamsSpec.$,
'VRServiceClient_OnDeviceChanged_Params',
[
],
[[0, 8],]);
goog.provide('device.mojom.VRServiceClient_OnDeviceChanged_Params');
/** @record */
device.mojom.VRServiceClient_OnDeviceChanged_Params = class {
constructor() {
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ParamsSpec.$,
'XREnvironmentIntegrationProvider_SubscribeToHitTest_Params',
[
mojo.internal.StructField(
'nativeOriginInformation', 0,
0,
device.mojom.XRNativeOriginInformationSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'entityTypes', 16,
0,
mojo.internal.Array(device.mojom.EntityTypeForHitTestSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'ray', 24,
0,
device.mojom.XRRaySpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 40],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_Params');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_Params = class {
constructor() {
/** @export { !device.mojom.XRNativeOriginInformation } */
this.nativeOriginInformation;
/** @export { !Array<!device.mojom.EntityTypeForHitTest> } */
this.entityTypes;
/** @export { !device.mojom.XRRay } */
this.ray;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParamsSpec.$,
'XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParams',
[
mojo.internal.StructField(
'result', 0,
0,
device.mojom.SubscribeToHitTestResultSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'subscriptionId', 8,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParams');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTest_ResponseParams = class {
constructor() {
/** @export { !device.mojom.SubscribeToHitTestResult } */
this.result;
/** @export { !bigint } */
this.subscriptionId;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ParamsSpec.$,
'XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_Params',
[
mojo.internal.StructField(
'profileName', 0,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'entityTypes', 8,
0,
mojo.internal.Array(device.mojom.EntityTypeForHitTestSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'ray', 16,
0,
device.mojom.XRRaySpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_Params');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_Params = class {
constructor() {
/** @export { !string } */
this.profileName;
/** @export { !Array<!device.mojom.EntityTypeForHitTest> } */
this.entityTypes;
/** @export { !device.mojom.XRRay } */
this.ray;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParamsSpec.$,
'XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParams',
[
mojo.internal.StructField(
'result', 0,
0,
device.mojom.SubscribeToHitTestResultSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'subscriptionId', 8,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParams');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_SubscribeToHitTestForTransientInput_ResponseParams = class {
constructor() {
/** @export { !device.mojom.SubscribeToHitTestResult } */
this.result;
/** @export { !bigint } */
this.subscriptionId;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_ParamsSpec.$,
'XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_Params',
[
mojo.internal.StructField(
'subscriptionId', 0,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_Params');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_UnsubscribeFromHitTest_Params = class {
constructor() {
/** @export { !bigint } */
this.subscriptionId;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ParamsSpec.$,
'XREnvironmentIntegrationProvider_CreateAnchor_Params',
[
mojo.internal.StructField(
'nativeOriginInformation', 0,
0,
device.mojom.XRNativeOriginInformationSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'nativeOriginFromAnchor', 16,
0,
device.mojom.PoseSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_Params');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_Params = class {
constructor() {
/** @export { !device.mojom.XRNativeOriginInformation } */
this.nativeOriginInformation;
/** @export { !device.mojom.Pose } */
this.nativeOriginFromAnchor;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ResponseParamsSpec.$,
'XREnvironmentIntegrationProvider_CreateAnchor_ResponseParams',
[
mojo.internal.StructField(
'result', 0,
0,
device.mojom.CreateAnchorResultSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'anchorId', 8,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ResponseParams');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_CreateAnchor_ResponseParams = class {
constructor() {
/** @export { !device.mojom.CreateAnchorResult } */
this.result;
/** @export { !bigint } */
this.anchorId;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ParamsSpec.$,
'XREnvironmentIntegrationProvider_CreatePlaneAnchor_Params',
[
mojo.internal.StructField(
'nativeOriginInformation', 0,
0,
device.mojom.XRNativeOriginInformationSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'nativeOriginFromAnchor', 16,
0,
device.mojom.PoseSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'planeId', 24,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 40],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_Params');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_Params = class {
constructor() {
/** @export { !device.mojom.XRNativeOriginInformation } */
this.nativeOriginInformation;
/** @export { !device.mojom.Pose } */
this.nativeOriginFromAnchor;
/** @export { !bigint } */
this.planeId;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParamsSpec.$,
'XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParams',
[
mojo.internal.StructField(
'result', 0,
0,
device.mojom.CreateAnchorResultSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'anchorId', 8,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParams');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_CreatePlaneAnchor_ResponseParams = class {
constructor() {
/** @export { !device.mojom.CreateAnchorResult } */
this.result;
/** @export { !bigint } */
this.anchorId;
}
};
mojo.internal.Struct(
device.mojom.XREnvironmentIntegrationProvider_DetachAnchor_ParamsSpec.$,
'XREnvironmentIntegrationProvider_DetachAnchor_Params',
[
mojo.internal.StructField(
'anchorId', 0,
0,
mojo.internal.Uint64,
BigInt(0),
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XREnvironmentIntegrationProvider_DetachAnchor_Params');
/** @record */
device.mojom.XREnvironmentIntegrationProvider_DetachAnchor_Params = class {
constructor() {
/** @export { !bigint } */
this.anchorId;
}
};
mojo.internal.Struct(
device.mojom.XRFrameDataProvider_GetFrameData_ParamsSpec.$,
'XRFrameDataProvider_GetFrameData_Params',
[
mojo.internal.StructField(
'options', 0,
0,
device.mojom.XRFrameDataRequestOptionsSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRFrameDataProvider_GetFrameData_Params');
/** @record */
device.mojom.XRFrameDataProvider_GetFrameData_Params = class {
constructor() {
/** @export { (device.mojom.XRFrameDataRequestOptions|undefined) } */
this.options;
}
};
mojo.internal.Struct(
device.mojom.XRFrameDataProvider_GetFrameData_ResponseParamsSpec.$,
'XRFrameDataProvider_GetFrameData_ResponseParams',
[
mojo.internal.StructField(
'frameData', 0,
0,
device.mojom.XRFrameDataSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRFrameDataProvider_GetFrameData_ResponseParams');
/** @record */
device.mojom.XRFrameDataProvider_GetFrameData_ResponseParams = class {
constructor() {
/** @export { (device.mojom.XRFrameData|undefined) } */
this.frameData;
}
};
mojo.internal.Struct(
device.mojom.XRFrameDataProvider_GetEnvironmentIntegrationProvider_ParamsSpec.$,
'XRFrameDataProvider_GetEnvironmentIntegrationProvider_Params',
[
mojo.internal.StructField(
'environmentProvider', 0,
0,
mojo.internal.AssociatedInterfaceRequest(device.mojom.XREnvironmentIntegrationProviderPendingReceiver),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRFrameDataProvider_GetEnvironmentIntegrationProvider_Params');
/** @record */
device.mojom.XRFrameDataProvider_GetEnvironmentIntegrationProvider_Params = class {
constructor() {
/** @export { !Object } */
this.environmentProvider;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationProvider_UpdateLayerBounds_ParamsSpec.$,
'XRPresentationProvider_UpdateLayerBounds_Params',
[
mojo.internal.StructField(
'frameId', 0,
0,
mojo.internal.Int16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'leftBounds', 8,
0,
gfx.mojom.RectFSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'rightBounds', 16,
0,
gfx.mojom.RectFSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'sourceSize', 24,
0,
gfx.mojom.SizeSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 40],]);
goog.provide('device.mojom.XRPresentationProvider_UpdateLayerBounds_Params');
/** @record */
device.mojom.XRPresentationProvider_UpdateLayerBounds_Params = class {
constructor() {
/** @export { !number } */
this.frameId;
/** @export { !gfx.mojom.RectF } */
this.leftBounds;
/** @export { !gfx.mojom.RectF } */
this.rightBounds;
/** @export { !gfx.mojom.Size } */
this.sourceSize;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationProvider_SubmitFrameMissing_ParamsSpec.$,
'XRPresentationProvider_SubmitFrameMissing_Params',
[
mojo.internal.StructField(
'frameId', 0,
0,
mojo.internal.Int16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'syncToken', 8,
0,
gpu.mojom.SyncTokenSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRPresentationProvider_SubmitFrameMissing_Params');
/** @record */
device.mojom.XRPresentationProvider_SubmitFrameMissing_Params = class {
constructor() {
/** @export { !number } */
this.frameId;
/** @export { !gpu.mojom.SyncToken } */
this.syncToken;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationProvider_SubmitFrame_ParamsSpec.$,
'XRPresentationProvider_SubmitFrame_Params',
[
mojo.internal.StructField(
'frameId', 0,
0,
mojo.internal.Int16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'mailboxHolder', 8,
0,
gpu.mojom.MailboxHolderSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'timeWaited', 16,
0,
mojoBase.mojom.TimeDeltaSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XRPresentationProvider_SubmitFrame_Params');
/** @record */
device.mojom.XRPresentationProvider_SubmitFrame_Params = class {
constructor() {
/** @export { !number } */
this.frameId;
/** @export { !gpu.mojom.MailboxHolder } */
this.mailboxHolder;
/** @export { !mojoBase.mojom.TimeDelta } */
this.timeWaited;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationProvider_SubmitFrameWithTextureHandle_ParamsSpec.$,
'XRPresentationProvider_SubmitFrameWithTextureHandle_Params',
[
mojo.internal.StructField(
'frameId', 0,
0,
mojo.internal.Int16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'texture', 4,
0,
mojo.internal.Handle,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'syncToken', 8,
0,
gpu.mojom.SyncTokenSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('device.mojom.XRPresentationProvider_SubmitFrameWithTextureHandle_Params');
/** @record */
device.mojom.XRPresentationProvider_SubmitFrameWithTextureHandle_Params = class {
constructor() {
/** @export { !number } */
this.frameId;
/** @export { !MojoHandle } */
this.texture;
/** @export { !gpu.mojom.SyncToken } */
this.syncToken;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationProvider_SubmitFrameDrawnIntoTexture_ParamsSpec.$,
'XRPresentationProvider_SubmitFrameDrawnIntoTexture_Params',
[
mojo.internal.StructField(
'frameId', 0,
0,
mojo.internal.Int16,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'syncToken', 8,
0,
gpu.mojom.SyncTokenSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'timeWaited', 16,
0,
mojoBase.mojom.TimeDeltaSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('device.mojom.XRPresentationProvider_SubmitFrameDrawnIntoTexture_Params');
/** @record */
device.mojom.XRPresentationProvider_SubmitFrameDrawnIntoTexture_Params = class {
constructor() {
/** @export { !number } */
this.frameId;
/** @export { !gpu.mojom.SyncToken } */
this.syncToken;
/** @export { !mojoBase.mojom.TimeDelta } */
this.timeWaited;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationClient_OnSubmitFrameTransferred_ParamsSpec.$,
'XRPresentationClient_OnSubmitFrameTransferred_Params',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRPresentationClient_OnSubmitFrameTransferred_Params');
/** @record */
device.mojom.XRPresentationClient_OnSubmitFrameTransferred_Params = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
device.mojom.XRPresentationClient_OnSubmitFrameRendered_ParamsSpec.$,
'XRPresentationClient_OnSubmitFrameRendered_Params',
[
],
[[0, 8],]);
goog.provide('device.mojom.XRPresentationClient_OnSubmitFrameRendered_Params');
/** @record */
device.mojom.XRPresentationClient_OnSubmitFrameRendered_Params = class {
constructor() {
}
};
mojo.internal.Struct(
device.mojom.XRPresentationClient_OnSubmitFrameGpuFence_ParamsSpec.$,
'XRPresentationClient_OnSubmitFrameGpuFence_Params',
[
mojo.internal.StructField(
'gpuFenceHandle', 0,
0,
gfx.mojom.GpuFenceHandleSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRPresentationClient_OnSubmitFrameGpuFence_Params');
/** @record */
device.mojom.XRPresentationClient_OnSubmitFrameGpuFence_Params = class {
constructor() {
/** @export { !gfx.mojom.GpuFenceHandle } */
this.gpuFenceHandle;
}
};
mojo.internal.Struct(
device.mojom.XRSessionClient_OnExitPresent_ParamsSpec.$,
'XRSessionClient_OnExitPresent_Params',
[
],
[[0, 8],]);
goog.provide('device.mojom.XRSessionClient_OnExitPresent_Params');
/** @record */
device.mojom.XRSessionClient_OnExitPresent_Params = class {
constructor() {
}
};
mojo.internal.Struct(
device.mojom.XRSessionClient_OnVisibilityStateChanged_ParamsSpec.$,
'XRSessionClient_OnVisibilityStateChanged_Params',
[
mojo.internal.StructField(
'visibilityState', 0,
0,
device.mojom.XRVisibilityStateSpec.$,
1,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('device.mojom.XRSessionClient_OnVisibilityStateChanged_Params');
/** @record */
device.mojom.XRSessionClient_OnVisibilityStateChanged_Params = class {
constructor() {
/** @export { !device.mojom.XRVisibilityState } */
this.visibilityState;
}
};
goog.provide('device.mojom.XRNativeOriginInformation');
mojo.internal.Union(
device.mojom.XRNativeOriginInformationSpec.$, 'XRNativeOriginInformation',
{
'inputSourceSpaceInfo': {
'ordinal': 0,
'type': device.mojom.XRInputSourceSpaceInfoSpec.$,
},
'planeId': {
'ordinal': 1,
'type': mojo.internal.Uint64,
},
'anchorId': {
'ordinal': 2,
'type': mojo.internal.Uint64,
},
'referenceSpaceType': {
'ordinal': 3,
'type': device.mojom.XRReferenceSpaceTypeSpec.$,
},
'handJointSpaceInfo': {
'ordinal': 4,
'type': device.mojom.XRHandJointSpaceInfoSpec.$,
},
'imageIndex': {
'ordinal': 5,
'type': mojo.internal.Uint32,
},
});
/**
* @typedef { {
* inputSourceSpaceInfo: (!device.mojom.XRInputSourceSpaceInfo|undefined),
* planeId: (!bigint|undefined),
* anchorId: (!bigint|undefined),
* referenceSpaceType: (!device.mojom.XRReferenceSpaceType|undefined),
* handJointSpaceInfo: (!device.mojom.XRHandJointSpaceInfo|undefined),
* imageIndex: (!number|undefined),
* } }
*/
device.mojom.XRNativeOriginInformation;
goog.provide('device.mojom.XRDepthData');
mojo.internal.Union(
device.mojom.XRDepthDataSpec.$, 'XRDepthData',
{
'dataStillValid': {
'ordinal': 0,
'type': device.mojom.XRDepthDataStillValidSpec.$,
},
'updatedDepthData': {
'ordinal': 1,
'type': device.mojom.XRDepthDataUpdatedSpec.$,
},
});
/**
* @typedef { {
* dataStillValid: (!device.mojom.XRDepthDataStillValid|undefined),
* updatedDepthData: (!device.mojom.XRDepthDataUpdated|undefined),
* } }
*/
device.mojom.XRDepthData;
goog.provide('device.mojom.RequestSessionResult');
mojo.internal.Union(
device.mojom.RequestSessionResultSpec.$, 'RequestSessionResult',
{
'success': {
'ordinal': 0,
'type': device.mojom.RequestSessionSuccessSpec.$,
},
'failureReason': {
'ordinal': 1,
'type': device.mojom.RequestSessionErrorSpec.$,
},
});
/**
* @typedef { {
* success: (!device.mojom.RequestSessionSuccess|undefined),
* failureReason: (!device.mojom.RequestSessionError|undefined),
* } }
*/
device.mojom.RequestSessionResult;