Bug 1527981 [wpt PR 15374] - Update interfaces/webxr.idl, a=testonly
authorautofoolip <auto@foolip.org>
Tue, 05 Mar 2019 12:14:18 +0000
changeset 464542 054360de1453
parent 464541 db38aa6ecb16
child 464543 cec99a4c0224
push id35717
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:45:26 +0000
treeherdermozilla-central@e0861be8d6c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1527981, 15374
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1527981 [wpt PR 15374] - Update interfaces/webxr.idl, a=testonly Automatic update from web-platform-tests Update interfaces/webxr.idl (#15374) Source: https://github.com/tidoust/reffy-reports/blob/d3ee200/whatwg/idl/webxr.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/492560012 -- wpt-commits: fbbf9a6b68f06236be7cfbf75807e0fc2e5e0930 wpt-pr: 15374
testing/web-platform/tests/interfaces/webxr.idl
--- a/testing/web-platform/tests/interfaces/webxr.idl
+++ b/testing/web-platform/tests/interfaces/webxr.idl
@@ -73,22 +73,22 @@ dictionary XRRenderStateInit {
   readonly attribute XRLayer? baseLayer;
 };
 
 callback XRFrameRequestCallback = void (DOMHighResTimeStamp time, XRFrame frame);
 
 [SecureContext, Exposed=Window] interface XRFrame {
   readonly attribute XRSession session;
 
-  XRViewerPose? getViewerPose(optional XRReferenceSpace referenceSpace);
-  XRInputPose? getInputPose(XRInputSource inputSource, optional XRReferenceSpace referenceSpace);
+  XRViewerPose? getViewerPose(XRReferenceSpace referenceSpace);
+  XRPose? getPose(XRSpace space, XRSpace relativeTo);
 };
 
 [SecureContext, Exposed=Window] interface XRSpace : EventTarget {
-  XRRigidTransform? getTransformTo(XRSpace other);
+
 };
 
 enum XRReferenceSpaceType {
   "stationary",
   "bounded",
   "unbounded"
 };
 
@@ -154,18 +154,22 @@ interface XRRigidTransform {
  Constructor(optional DOMPointInit origin, optional DOMPointInit direction),
  Constructor(XRRigidTransform transform)]
 interface XRRay {
   readonly attribute DOMPointReadOnly origin;
   readonly attribute DOMPointReadOnly direction;
   readonly attribute Float32Array matrix;
 };
 
-[SecureContext, Exposed=Window] interface XRViewerPose {
+[SecureContext, Exposed=Window] interface XRPose {
   readonly attribute XRRigidTransform transform;
+  readonly attribute boolean emulatedPosition;
+};
+
+[SecureContext, Exposed=Window] interface XRViewerPose : XRPose {
   readonly attribute FrozenArray<XRView> views;
 };
 
 enum XRHandedness {
   "",
   "left",
   "right"
 };
@@ -175,23 +179,18 @@ enum XRTargetRayMode {
   "tracked-pointer",
   "screen"
 };
 
 [SecureContext, Exposed=Window]
 interface XRInputSource {
   readonly attribute XRHandedness handedness;
   readonly attribute XRTargetRayMode targetRayMode;
-};
-
-[SecureContext, Exposed=Window]
-interface XRInputPose {
-  readonly attribute boolean emulatedPosition;
-  readonly attribute XRRay targetRay;
-  readonly attribute XRRigidTransform? gripTransform;
+  readonly attribute XRSpace targetRaySpace;
+  readonly attribute XRSpace? gripSpace;
 };
 
 [SecureContext, Exposed=Window] interface XRLayer {};
 
 typedef (WebGLRenderingContext or
          WebGL2RenderingContext) XRWebGLRenderingContext;
 
 dictionary XRWebGLLayerInit {