Skip to content

Commit

Permalink
Update interfaces/webxr.idl (#15374)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofoolip authored and foolip committed Feb 14, 2019
1 parent 1b28089 commit fbbf9a6
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions interfaces/webxr.idl
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ 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 {
Expand Down Expand Up @@ -159,8 +159,12 @@ interface XRRay {
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;
};

Expand All @@ -180,13 +184,8 @@ enum XRTargetRayMode {
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 {};
Expand Down

0 comments on commit fbbf9a6

Please sign in to comment.