Bug 1527981 [wpt PR 15374] - Update interfaces/webxr.idl, a=testonly
authorautofoolip <auto@foolip.org>
Tue, 05 Mar 2019 12:14:18 +0000
changeset 522160 3fb86165ce50dd6cb220d7def829d09f40ec9a64
parent 522159 7f5ce8587ad9a48d58e387db12b3e022881825d8
child 522161 822ff0ac5f39581494eece446f71586dc003d7cb
push id10871
push usercbrindusan@mozilla.com
push dateMon, 18 Mar 2019 15:49:32 +0000
treeherdermozilla-beta@018abdd16060 [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 {