Martin Robinson
0e616e0c5d
api: Flatten and simplify Servo preferences ( #34966 )
...
Flatten and simplify Servo's preferences code. In addition, have both
preferences and options passed in as arguments to `Servo::new()` and
make sure not to use the globally set preferences in `servoshell` (as
much as possible now).
Instead of a complex procedural macro to generate preferences, just
expose a very simple derive macro that adds string based getters and
setters.
- All command-line parsing is moved to servoshell.
- There is no longer the concept of a missing preference.
- Preferences no longer have to be part of the resources bundle because
they now have reasonable default values.
- servoshell specific preferences are no longer part of the preferences
exposed by the Servo API.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-01-14 13:54:06 +00:00
Josh Matthews
3faed9b921
Filter out webidl files based on special comments, and feature-gate webxr 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>
2024-11-24 18:01:35 +00:00
Daniel Adams
08a4d751d7
webxr: Update XRInputSource Gamepad handling, FakeXRInputController ( #33403 )
...
* Disconnect XRInputSource gamepads on removal
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update Cargo.lock
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Comments, adjustments
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
---------
Signed-off-by: Daniel Adams <msub2official@gmail.com>
2024-09-12 01:52:16 +00:00
Kagami Sascha Rosylight
5b38981b5b
tidy
2022-01-05 15:07:09 +01:00
Kagami Sascha Rosylight
52ea5204a2
Convert Web IDL void to undefined
...
Fixes #27660
2022-01-05 03:39:33 +01:00
Manish Goregaokar
e0135fe783
Support profiles
2020-01-21 15:47:30 -08:00
Manish Goregaokar
9c34a6585b
Handle SetTargetRayMode and SetHandedness
2020-01-21 15:47:30 -08:00
Manish Goregaokar
82002765be
Add select events
2020-01-09 08:16:25 +05:30
Manish Goregaokar
225254a6b3
Add disconnect()/reconnect()
2020-01-09 08:16:25 +05:30
Manish Goregaokar
e03fd0ef1c
Add pointer/grip mocking
2020-01-09 08:16:25 +05:30
Manish Goregaokar
bf30bf26a4
Add blank FakeXRInputController interface
2020-01-09 08:16:25 +05:30