aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrreferencespace.rs
Commit message (Collapse)AuthorAgeFilesLines
* Filter out webidl files based on special comments, and feature-gate webxr ↵Josh Matthews2024-11-241-153/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interfaces. (#34348) * Filter out webidl files based on skip-if directives. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Don't build XR functionality without webxr feature. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix tidy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Adjust imports for file movement. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Clean up webxr module import. Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
* Generate a trait abstracting over all known DOM interfaces (#34357)Josh Matthews2024-11-241-1/+1
| | | | | | | | | | | | | | | | | * script: Generate trait for all DOM interfaces and parameterize generated Methods traits over it. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Update trait implementations with new generic type. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* More files with CanGc fixes (#33892)chickenleaf2024-10-181-3/+5
| | | | | | | | | | | | | * More files with CanGc fixes Signed-off-by: L Ashwin B <lashwinib@gmail.com> * removed the can_gc inside !task Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* webxr: Implement reference space reset events (#33460)Daniel Adams2024-09-171-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial interface implementation Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add event handler Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update FakeXRDevice interface Signed-off-by: Daniel Adams <msub2official@gmail.com> * Implement reset event Signed-off-by: Daniel Adams <msub2official@gmail.com> * Downcast bounded spaces Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update webxr commit Signed-off-by: Daniel Adams <msub2official@gmail.com> * fmt Signed-off-by: Daniel Adams <msub2official@gmail.com> * Adjust DomRoot usage Signed-off-by: Daniel Adams <msub2official@gmail.com> * fmt Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update manifest Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update FakeXRDevice to support updating bounds (#33271)Daniel Adams2024-09-011-2/+2
| | | | | | | | | | | | | | | | | * Update FakeXRDevice to support updating bounds Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing spec link Signed-off-by: Daniel Adams <msub2official@gmail.com> * Mark secondaryViews as optional in FakeXRDevice.setViews Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* webxr: Implement XRBoundedReferenceSpace (#33176)Daniel Adams2024-08-251-3/+10
| | | | | | | | | | | | | | | | | | | | | * Implement XRBoundedReferenceSpace Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update interfaces Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing pref condition on IDL interface Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* clippy: Fix many warnings in `components/script` (#31717)Richard Dushime2024-03-191-1/+1
| | | | | | | | | | | | | | | | | * Fix Several clippy warnings * Fix Build errors * Fix Unused import * Fix requested changes * Fix rustfmt * Minor fixes --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* rustdoc: Fix many rustdoc errors (#31147)Martin Robinson2024-01-221-1/+1
| | | | This fixes many rustdoc errors that occur due to raw URLs in rustdoc comments as well as unescaped Rust code that should be in backticks.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-5/+7
| | | | | * strict imports formatting * Reformat all imports
* Bump euclid to 0.22Martin Robinson2023-01-261-2/+2
| | | | | | | | | | | | | - Also updates raqote to latest with an upgrade of font-kit to 0.11 applied on as a patch - Update lyon_geom to the latest version Major change: - All matrices are now stored in row major order. This means that parameters to rotation functions no longer should be negated. - `post_...()` functions are now named `then()`. `pre_transform()` is removed, so `then()` is used and the order of operations changed.
* Update to treat view transforms as native-relativeManish Goregaokar2020-05-181-56/+11
|
* Update to use webxr_api::ViewerPoseManish Goregaokar2020-05-181-3/+5
|
* Add XRSession::requestHitTestSource()Manish Goregaokar2020-04-191-1/+12
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-2/+0
|
* Use actual floor origin for local-floorManish Goregaokar2019-12-111-15/+16
|
* Support nullable origins and floorsManish Goregaokar2019-12-111-15/+15
|
* Origin offset fixesManish Goregaokar2019-12-021-7/+6
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-9/+9
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* Add a viewer typed reference spaceManish Goregaokar2019-07-111-7/+5
|
* Hook webxr data into XRFrame/XRView/XRSpaceManish Goregaokar2019-07-111-13/+15
|
* Update originOffset semanticsManish Goregaokar2019-06-101-17/+30
|
* Update reference spaces to new modelManish Goregaokar2019-06-101-20/+60
|
* Add XRInputSource.targetRaySpaceManish Goregaokar2019-05-031-1/+1
|
* Add some math verifying relationship between get_viewer_pose and get_poseManish Goregaokar2019-04-081-2/+8
|
* Add proper get_pose for XRSpacesManish Goregaokar2019-04-041-3/+25
|
* Rename incorrectly-named get_pose methodsManish Goregaokar2019-04-041-5/+14
|
* Consistently use GlobalScope in XR codeManish Goregaokar2019-04-031-2/+2
|
* Switch XRSpace code to using rigid transformsManish Goregaokar2019-04-031-11/+6
|
* Make XRRigidTransform.position/orientation lazy, default to using euclid thingsManish Goregaokar2019-04-031-16/+0
|
* Add XRSpace::get_viewer_pose()Manish Goregaokar2019-03-251-0/+34
|
* Add XRReferenceSpace::identityManish Goregaokar2019-03-181-0/+10
|
* Add session parameter to XRSpaceManish Goregaokar2019-03-181-3/+5
|
* Add originOffset to XRReferenceSpaceManish Goregaokar2019-03-181-5/+27
|
* Silence unused warningsManish Goregaokar2019-01-031-0/+1
|
* Basic XRReferenceSpace interfaceManish Goregaokar2018-12-191-0/+31