// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://immersive-web.github.io/webxr/#xrview-interface
enum XREye {
"none",
"left",
"right"
};
[
SecureContext,
Exposed=Window,
RuntimeEnabled=WebXR
] interface XRView {
readonly attribute XREye eye;
readonly attribute Float32Array projectionMatrix;
[SameObject, ImplementedAs=refSpaceFromView] readonly attribute XRRigidTransform transform;
readonly attribute double? recommendedViewportScale;
// Added by the AR module.
// https://immersive-web.github.io/webxr-ar-module/
readonly attribute boolean isFirstPersonObserver;
void requestViewportScale(double? scale);
[SameObject]
readonly attribute XRCamera? camera;
};