Bug 1514667 [wpt PR 14553] - Update interfaces/webxr.idl, a=testonly
authorautofoolip <auto@foolip.org>
Wed, 19 Dec 2018 12:09:45 +0000
changeset 515045 de6eb8b26514f6f570b831618c68549642a03c5d
parent 515044 e1ddc06a718228715000655afb410f0035c4ced0
child 515046 659852699d86c713d6bbe315bb1b3b3794e2a5cb
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1514667, 14553
milestone66.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 1514667 [wpt PR 14553] - Update interfaces/webxr.idl, a=testonly Automatic update from web-platform-tests Update interfaces/webxr.idl (#14553) Source: https://github.com/tidoust/reffy-reports/blob/e64cb71/whatwg/idl/webxr.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/468885960 -- wpt-commits: 6ac8aafecc3aa1f51ef1ab6cdebc1560ec883601 wpt-pr: 14553
testing/web-platform/tests/interfaces/webxr.idl
--- a/testing/web-platform/tests/interfaces/webxr.idl
+++ b/testing/web-platform/tests/interfaces/webxr.idl
@@ -69,17 +69,17 @@ callback XRFrameRequestCallback = void (
 [SecureContext, Exposed=Window] interface XRFrame {
   readonly attribute XRSession session;
 
   XRViewerPose? getViewerPose(optional XRReferenceSpace referenceSpace);
   XRInputPose? getInputPose(XRInputSource inputSource, optional XRReferenceSpace referenceSpace);
 };
 
 [SecureContext, Exposed=Window] interface XRSpace : EventTarget {
-  Float32Array? getTransformTo(XRSpace other);
+  XRRigidTransform? getTransformTo(XRSpace other);
 };
 
 enum XRReferenceSpaceType {
   "stationary",
   "bounded",
   "unbounded"
 };
 
@@ -120,27 +120,45 @@ enum XREye {
   "left",
   "right"
 };
 
 [SecureContext, Exposed=Window] interface XRView {
   readonly attribute XREye eye;
   readonly attribute Float32Array projectionMatrix;
   readonly attribute Float32Array viewMatrix;
+  readonly attribute XRRigidTransform transform;
 };
 
 [SecureContext, Exposed=Window] interface XRViewport {
   readonly attribute long x;
   readonly attribute long y;
   readonly attribute long width;
   readonly attribute long height;
 };
 
+[SecureContext, Exposed=Window,
+ Constructor(optional DOMPointInit position, optional DOMPointInit orientation)]
+interface XRRigidTransform {
+  readonly attribute DOMPointReadOnly position;
+  readonly attribute DOMPointReadOnly orientation;
+  readonly attribute Float32Array matrix;
+};
+
+[SecureContext, Exposed=Window,
+ 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 {
-  readonly attribute Float32Array poseMatrix;
+  readonly attribute XRRigidTransform transform;
   readonly attribute FrozenArray<XRView> views;
 };
 
 enum XRHandedness {
   "",
   "left",
   "right"
 };
@@ -153,27 +171,20 @@ enum XRTargetRayMode {
 
 [SecureContext, Exposed=Window]
 interface XRInputSource {
   readonly attribute XRHandedness handedness;
   readonly attribute XRTargetRayMode targetRayMode;
 };
 
 [SecureContext, Exposed=Window]
-interface XRRay {
-  readonly attribute DOMPointReadOnly origin;
-  readonly attribute DOMPointReadOnly direction;
-  readonly attribute Float32Array transformMatrix;
-};
-
-[SecureContext, Exposed=Window]
 interface XRInputPose {
   readonly attribute boolean emulatedPosition;
   readonly attribute XRRay targetRay;
-  readonly attribute Float32Array? gripMatrix;
+  readonly attribute XRRigidTransform? gripTransform;
 };
 
 [SecureContext, Exposed=Window] interface XRLayer {};
 
 typedef (WebGLRenderingContext or
          WebGL2RenderingContext) XRWebGLRenderingContext;
 
 dictionary XRWebGLLayerInit {
@@ -238,15 +249,15 @@ interface XRInputSourceEvent : Event {
 dictionary XRInputSourceEventInit : EventInit {
   required XRFrame frame;
   required XRInputSource inputSource;
 };
 
 [SecureContext, Exposed=Window, Constructor(DOMString type, XRReferenceSpaceEventInit eventInitDict)]
 interface XRReferenceSpaceEvent : Event {
   readonly attribute XRReferenceSpace referenceSpace;
-  readonly attribute Float32Array? transformMatrix;
+  readonly attribute XRRigidTransform? transform;
 };
 
 dictionary XRReferenceSpaceEventInit : EventInit {
   required XRReferenceSpace referenceSpace;
-  Float32Array transformMatrix;
+  XRRigidTransform transform;
 };