| // 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/#xrframe |
| [ |
| SecureContext, |
| Exposed=Window, |
| RuntimeEnabled=WebXR |
| ] interface XRFrame { |
| [SameObject] readonly attribute XRSession session; |
| |
| // More details about the real-world understanding APIs can be found here: |
| // https://github.com/immersive-web/real-world-geometry/blob/master/plane-detection-explainer.md |
| [RuntimeEnabled=WebXRPlaneDetection] readonly attribute XRWorldInformation worldInformation; |
| |
| [RuntimeEnabled=WebXRAnchors] readonly attribute XRAnchorSet trackedAnchors; |
| |
| [RaisesException] XRViewerPose? getViewerPose(XRReferenceSpace referenceSpace); |
| [RaisesException] XRPose? getPose(XRSpace space, XRSpace relativeTo); |
| |
| [RuntimeEnabled=WebXRHitTest] FrozenArray<XRHitTestResult> getHitTestResults(XRHitTestSource hitTestSource); |
| }; |