blob: 4f9f9747f1bf5040ddc1b174bc7696ec24238332 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// 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] readonly attribute XRRigidTransform transform;
[RuntimeEnabled=WebXRViewportScale] readonly attribute double? recommendedViewportScale;
// Added by the AR module.
// https://immersive-web.github.io/webxr-ar-module/
readonly attribute boolean isFirstPersonObserver;
[RuntimeEnabled=WebXRViewportScale] void requestViewportScale(double? scale);
};