Skip to content

Commit

Permalink
Add interfaces/dom-overlays.idl and test (web-platform-tests#24634)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcgruer committed Jul 23, 2020
1 parent b3199ab commit 0cc1eb6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
31 changes: 31 additions & 0 deletions interfaces/dom-overlays.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: WebXR DOM Overlays Module (https://immersive-web.github.io/dom-overlays/)

partial interface mixin GlobalEventHandlers {
attribute EventHandler onbeforexrselect;
};

partial dictionary XRSessionInit {
XRDOMOverlayInit? domOverlay;
};

partial interface XRSession {
readonly attribute XRDOMOverlayState? domOverlayState;
};

dictionary XRDOMOverlayInit {
required Element root;
};

enum XRDOMOverlayType {
"screen",
"floating",
"head-locked"
};

dictionary XRDOMOverlayState {
XRDOMOverlayType type;

};
16 changes: 16 additions & 0 deletions webxr/dom-overlay/idlharness.https.window.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

'use strict';

// https://immersive-web.github.io/dom-overlays/

idl_test(
['dom-overlays'],
['webxr', 'html', 'dom'],
async idl_array => {
idl_array.add_objects({
// TODO: Add object instances
});
}
);

0 comments on commit 0cc1eb6

Please sign in to comment.