blob: 7769a0bef94fc7fdb97c6c8af3e1a8382119ac1b [file] [log] [blame]
// 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;
[RuntimeEnabled=WebXRVisibilityMask] readonly attribute unsigned long index;
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;
};
XRView includes XRViewGeometry;