servo/components/script/dom/webxr
Josh Matthews b8971e528f
script: Move Window-only gamepad functionality out of GlobalScope (#36805)
The only code that calls these methods is in the script thread, and the
code is simpler when we can assume a Window global. Pulling this thread
led to cleaning up a lot of constructors for Window-only WebXR code,
too.

Testing: Existing WPT coverage.

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-05-02 20:10:26 +00:00
..
fakexrdevice.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
fakexrinputcontroller.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
mod.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrboundedreferencespace.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrcompositionlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrcubelayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrcylinderlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrequirectlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrframe.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrhand.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrhittestresult.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrhittestsource.rs script: Move Window-only gamepad functionality out of GlobalScope (#36805) 2025-05-02 20:10:26 +00:00
xrinputsource.rs script: Move Window-only gamepad functionality out of GlobalScope (#36805) 2025-05-02 20:10:26 +00:00
xrinputsourcearray.rs script: Move Window-only gamepad functionality out of GlobalScope (#36805) 2025-05-02 20:10:26 +00:00
xrinputsourceevent.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrinputsourceschangeevent.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrjointpose.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrjointspace.rs Propagate CanGc arguments through callers in constructors (#35541) 2025-02-20 16:17:45 +00:00
xrlayer.rs script: Add CanvasContext trait (#35448) 2025-02-21 20:26:27 +00:00
xrlayerevent.rs Use new stylo crate renames (#35898) 2025-03-12 00:02:12 +00:00
xrmediabinding.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrpose.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrprojectionlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrquadlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrray.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrreferencespace.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrreferencespaceevent.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrrenderstate.rs script: Move Window-only gamepad functionality out of GlobalScope (#36805) 2025-05-02 20:10:26 +00:00
xrrigidtransform.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrsession.rs script: Move Window-only gamepad functionality out of GlobalScope (#36805) 2025-05-02 20:10:26 +00:00
xrsessionevent.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrspace.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrsubimage.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrsystem.rs script: Move Window-only gamepad functionality out of GlobalScope (#36805) 2025-05-02 20:10:26 +00:00
xrtest.rs script: Mark callback methods with CanGc. (#35753) 2025-03-03 12:17:25 +00:00
xrview.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrviewerpose.rs Use Window in new methods instead of GlobalScope for interfaces with … (#36133) 2025-04-02 14:50:56 +00:00
xrviewport.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrwebglbinding.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrwebgllayer.rs Cleanups for future script crate split (#35987) 2025-03-16 13:46:14 +00:00
xrwebglsubimage.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00