mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Expose XRSession.visibilityState
This commit is contained in:
parent
26b2f02210
commit
75c763120f
3 changed files with 15 additions and 4 deletions
|
@ -10,6 +10,12 @@ enum XREnvironmentBlendMode {
|
|||
"alpha-blend",
|
||||
};
|
||||
|
||||
enum XRVisibilityState {
|
||||
"visible",
|
||||
"visible-blurred",
|
||||
"hidden",
|
||||
};
|
||||
|
||||
callback XRFrameRequestCallback = void (DOMHighResTimeStamp time, XRFrame frame);
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
|
@ -17,7 +23,7 @@ interface XRSession : EventTarget {
|
|||
// // Attributes
|
||||
readonly attribute XREnvironmentBlendMode environmentBlendMode;
|
||||
|
||||
// readonly attribute XRVisibilityState visibilityState;
|
||||
readonly attribute XRVisibilityState visibilityState;
|
||||
[SameObject] readonly attribute XRRenderState renderState;
|
||||
[SameObject] readonly attribute XRInputSourceArray inputSources;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue