Skip to content
Permalink
Browse files

Add event handlers for sessionend events

  • Loading branch information...
Manishearth committed Oct 3, 2019
1 parent 2e577f7 commit b094ceb076f2318a845257e54c3d2f9aa92faa26
Showing with 12 additions and 3 deletions.
  1. +3 −3 components/script/dom/webidls/XRSession.webidl
  2. +9 −0 components/script/dom/xrsession.rs
@@ -39,8 +39,8 @@ interface XRSession : EventTarget {
// attribute EventHandler onblur;
// attribute EventHandler onfocus;
attribute EventHandler onend;
// attribute EventHandler onselect;
attribute EventHandler onselect;
// attribute EventHandler oninputsourceschange;
// attribute EventHandler onselectstart;
// attribute EventHandler onselectend;
attribute EventHandler onselectstart;
attribute EventHandler onselectend;
};
@@ -291,6 +291,15 @@ impl XRSessionMethods for XRSession {
/// https://immersive-web.github.io/webxr/#eventdef-xrsession-end
event_handler!(end, GetOnend, SetOnend);

/// https://immersive-web.github.io/webxr/#eventdef-xrsession-select
event_handler!(select, GetOnselect, SetOnselect);

/// https://immersive-web.github.io/webxr/#eventdef-xrsession-selectstart
event_handler!(selectstart, GetOnselectstart, SetOnselectstart);

/// https://immersive-web.github.io/webxr/#eventdef-xrsession-selectend
event_handler!(selectend, GetOnselectend, SetOnselectend);

/// https://immersive-web.github.io/webxr/#dom-xrsession-mode
fn Mode(&self) -> XRSessionMode {
XRSessionMode::Immersive_vr

0 comments on commit b094ceb

Please sign in to comment.
You can’t perform that action at this time.