aboutsummaryrefslogtreecommitdiffstats
path: root/ports
Commit message (Collapse)AuthorAgeFilesLines
* servoshell: fix issues related to HiDPI (#33529)Mukilan Thiyagarajan2024-09-243-24/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation has 3 main issues related to HiDPI: 1. When the window moves from a screen with scale factor of 1.5 to one with 1 and back to 1.5, the minibrowser toolbar actually ends up being scaled by a factor of 2.25 instead of 1.5. This is because we currently use the [set_pixels_per_point] method on egui's Context, but calling this with a value of `ppp` will modify egui's internal 'zoom factor' to be: ``` zoom_factor = ppp / native_points_per_pixel. ``` where `native_points_per_pixel` is the window system scale factor. The idea is egui can calculate the final scale factor for translating its logical points to physical pixels as: ``` points_per_pixel = zoom_factor * native_points_per_pixel ``` where zoom_factor is a factor used for Ctrl+Plus, Ctrl+Minus behaviour. The problem is when we handle the ScaleFactorChanged winit event due to window moving between screens, the `native_points_per_pixel` still has the value of the previous screen's native scaling factor and not the current screen's factor. This seems to be the case even if we pass the ScaleFactorChanged event to egui before we call `set_pixels_per_point`. 2. The egui logic for handing Ctrl+Plus, Ctrl+Minus and Ctrl+0 doesn't interact well with servoshell's device-pixel-ratio CLI argument which allows the user to override the HiDPI factor. For example, Ctrl+0 will cause egui to reset the zoom_factor to 1.0 instead of the override we wanted. Another issue is egui's Ctrl+Plus/Ctrl+Minus will scale the minibrowser in increments of 0.10 whereas Servo's own page zoom doesn't (it keeps multiplying by 1.1, so the actual increments are 0.1, 0.21. 0.33 etc) 3. The inital window size calculation on Linux currently assumes a scale factor of 1.0. This means the window doesn't have the expected default logical size of 1024*740 on HiDPI systems. On a screen with HiDPI factor of 1.5, the logical window size ends up being 682x493. This change addresses all 3 issues: For 1, switch to the `set_zoom_factor` method of egui context to avoid the issue with scaling by incorrect native_points_per_pixel. To allow for the device-pixel-ratio override to work, we calculate the actual zoom_factor as `device-pixel-ratio / window's scaling factor`. For 2, disable egui's handling of Ctrl+Plus, Ctrl+Minus, Ctrl-0 shortcuts. It is unclear whether the current behaviour of scaling both the toolbar and the web page was intentional, or just an accident. This behaviour is also different from other browser where page zoom doesn't scale the GUI, so it doesn't seem like a regression to me. For 3, use LogicalSize type of winit which lets the physical size calulation to be handled by winit using the windows's actual HiDPI factor instead of hardcoded 1.0. [set_pixels_per_point]: https://github.com/emilk/egui/blob/1603f0581882c4ca299db1d6efdba9148ebcddb6/crates/egui/src/context.rs#L1886 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* ohos: Bundle resource files in hap (#33513)Jonathan Schwender2024-09-248-21/+67
| | | | | | | | | | Bundle resource files into the .hap, so they are available as files in the application sandbox, instead of included into the shared library. This should slightly reduce the binary size in debug and release mode. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* android/ohos: Fix wrong production cfg (#33488)Jonathan Schwender2024-09-183-5/+2
| | | | | Our build script sets `servo_production` and not `production`. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* Add `rust-version` to all `Cargo.toml` files (#33483)Martin Robinson2024-09-171-0/+1
| | | | | | | This is another step preparing for building Servo without `mach`. Fixes #33430. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* servoshell: Update gilrs version, enable gamepad pref by default (#33466)Daniel Adams2024-09-171-1/+1
| | | | | | | | | | | | | | | | | * Update gilrs version, enable pref by default Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add core-foundation to servo-tidy ignore 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>
* clippy: Fix suggestions in `script`, `libservo`, and `servoshell` (#33453)Ali2024-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * fix clone on copy warning in servoshell Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> * Remove unecessary borrow in libservo Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> * Ignore too many arguments warning on create_constellation() Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> * fix explicit auto-deref warning Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> * Autofix multiple clippy warnings in components/script Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> --------- Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com>
* Plumb selected tracing spans into hitrace (#33324)Delan Azabani2024-09-102-0/+118
| | | | | | | | | | | | | | | | | * Plumb selected tracing spans into hitrace Signed-off-by: Delan Azabani <dazabani@igalia.com> * Tag the spans in #33189 with the `servo_profiling` field Signed-off-by: Delan Azabani <dazabani@igalia.com> * Add comment about fields vs extensions Signed-off-by: Delan Azabani <dazabani@igalia.com> --------- Signed-off-by: Delan Azabani <dazabani@igalia.com>
* Fallback to the url if a tabs title is empty (#33391)Ben2024-09-101-2/+2
| | | Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de>
* build(deps): bump ohos-sys from 0.3.0 to 0.3.1 (#33329)dependabot[bot]2024-09-051-1/+1
| | | | | | | | | | | | | | | Bumps [ohos-sys](https://github.com/openharmony-rs/ohos-sys) from 0.3.0 to 0.3.1. - [Changelog](https://github.com/openharmony-rs/ohos-sys/blob/main/CHANGELOG.md) - [Commits](https://github.com/openharmony-rs/ohos-sys/commits) --- updated-dependencies: - dependency-name: ohos-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* minibrowser: Reset the location field when switching tabs (#33316)webbeef2024-09-051-0/+2
| | | Signed-off-by: webbeef <me@webbeef.org>
* Added some keyboard shortcuts for focusing tabs (#33319)Ben2024-09-051-0/+42
| | | | | | Currently Cmd/Ctrl + [1-9] and Ctrl + PageUp/Down, since they are present in most major browsers. Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de>
* Make tracing available on all platforms, with or without perfetto (#33301)Delan Azabani2024-09-046-44/+31
| | | | | | | | | | | | | * Make tracing available on all platforms Signed-off-by: Delan Azabani <dazabani@igalia.com> * Gate perfetto support behind its own feature Signed-off-by: Delan Azabani <dazabani@igalia.com> --------- Signed-off-by: Delan Azabani <dazabani@igalia.com>
* servoshell: Add close buttons and increase interactivity of tabs (#33244)Ben2024-09-041-18/+103
| | | | | | | | | | | | | | | | | | | | | | | * Improved the minibrowser tab bar Added a close button for each tab as well as another button for opening a new tab, also changed the styling so it looks more like other browsers. Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> * Make sure to restore the egui visuals after drawing a browser tab Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> * Only use colors from the current theme for the minibrowser tabbar That way we can easily switch between light and dark mode Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> --------- Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de>
* Add initial support for tracing and tracing-perfetto (#33188)atbrakhi2024-09-042-0/+33
| | | | Signed-off-by: atbrakhi <atbrakhi@igalia.com> Co-authored-by: Delan Azabani <dazabani@igalia.com>
* ohos: Present on vsync signals (#33117)Jonathan Schwender2024-08-305-9/+73
| | | | | | | | | Rely on callbacks from the vertical synchronization driver, to drive presentation. Future commits will base animation updates and touchless gestures like fling off these vsync events. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* build(deps): bump ohos-sys from 0.2.2 to 0.3.0 (#33253)dependabot[bot]2024-08-291-1/+1
| | | | | | | | | | | | | | | Bumps [ohos-sys](https://github.com/openharmony-rs/ohos-sys) from 0.2.2 to 0.3.0. - [Changelog](https://github.com/openharmony-rs/ohos-sys/blob/main/CHANGELOG.md) - [Commits](https://github.com/openharmony-rs/ohos-sys/compare/v0.2.2...v0.3.0) --- updated-dependencies: - dependency-name: ohos-sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix minibrowser scroll by keyboard (#33252)Cristian Brinza2024-08-291-7/+25
| | | | | | | | | | | | | | | | * Fix minibrowser scroll by keyboard Signed-off-by: crbrz <cristianb@gmail.com> * Apply suggested change Co-authored-by: Josh Matthews <josh@joshmatthews.net> Signed-off-by: Cristian Brinza <cristianb@gmail.com> --------- Signed-off-by: crbrz <cristianb@gmail.com> Signed-off-by: Cristian Brinza <cristianb@gmail.com> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Pass keyboard events to WebView on Windows (#33225)Cristian Brinza2024-08-291-66/+56
| | | | | | | | | | | | | * Pass keyboard events to webview on Windows Signed-off-by: crbrz <cristianb@gmail.com> * Refactor WebViewManager::handle_key_from_window Signed-off-by: crbrz <cristianb@gmail.com> --------- Signed-off-by: crbrz <cristianb@gmail.com>
* servoshell: Enable OpenXR by default and remove old WebVR prefs, adjust ↵Daniel Adams2024-08-291-21/+28
| | | | | | | | | | | | | | | XrDiscovery initialization (#33245) * Remove WebVR prefs, enable OpenXR by default Signed-off-by: Daniel Adams <msub2official@gmail.com> * Prefer OpenXR if available, otherwise use GLWindow Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Don't allow minibrowser tab titles to be empty (#33229)Simon Wülker2024-08-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | * avoid unnecessary clones when setting tab title in minibrowser This is of course not a performance issue, but rather just bad style. Especially since the url doesn't even need to be .clone()'d in the first place. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Don't allow empty tab titles in minibrowser These look very confusing. If the page has no title its better to fall back to the url instead of displaying absolutely nothing. (This is what firefox seems to do too) Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* compositor: Do not parse the Cargo.lock file while building (#33222)Martin Robinson2024-08-281-0/+4
| | | | | | | | | | | | | | | The compositor's `build.rs` script was parsing the `Cargo.lock` file in order to tag WebRender captures with the WebRender version. The embedder already knows what version of Servo we are using, which should be enough to infer the WebRender revision. This changes does that and generally does a bit of cleaning up of how captures are done. - The name of the capture directory is now `webrender-captures` - There is console output now when captures are done. Before it was hard to know if it succeeded. - Simplify the Compositor constructor a little to avoid passing arguments so much. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* android: Remove unused imports in android.rs (#33218)Jonathan Schwender2024-08-281-2/+0
| | | Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* Basic tab strip for the minibrowser (#33100)webbeef2024-08-279-71/+372
| | | | | | | | | | | | | | This implements a simple tab system for servoshell: - The egui part uses the built-in SelectableLabels components and display the full tab title on hover. - WebView structs now hold all the state for each WebView. When we need "global" state, we return the focused WebView state, eg. for the load status since it's still global in the UI. - New keyboard shortcut: [Cmd-or-Ctrl]+[W] to close the current tab. - New keyboard shortcut: [Cmd-or-Ctrl]+[T] to create a new tab. - The new tab content is loaded from the 'servo:newtab' url using a couple of custom protocol handlers. Signed-off-by: webbeef <me@webbeef.org>
* ohos: Add FFI-APIs to navigate back and forward (#33206)Jonathan Schwender2024-08-271-2/+15
| | | | | | | To be useful it requires using the latest version of the OH demo ArkTS app, but it is still compatible with older versions, as the newly added FFI functions will simply be unused in such a case. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* Redesigned minibrowser toolbar to use icons instead of text (#33179)Ben2024-08-261-20/+35
| | | | | | | | | | | | | | | | | * Redesigned minibrowser toolbar to use icons instead of text Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> * Apply suggestions from code review Address a couple nits Signed-off-by: Martin Robinson <mrobinson@igalia.com> --------- Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Allow prefs to be overridden from a file and set WPT-specific prefs from ↵Daniel Adams2024-08-242-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | file (#33163) * Allow prefs to be passed in from a separate file Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add wpt-prefs.json for setting WPT-specific prefs Signed-off-by: Daniel Adams <msub2official@gmail.com> * fix argument to read_prefs_file Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update test_parse_pref test Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add line in executorservo.py to read from wpt-prefs.json Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update MANIFEST.json Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Disable dom.webxr.test for interfaces test Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* make protocol handlers registrable (#33104)webbeef2024-08-225-0/+65
| | | Signed-off-by: webbeef <me@webbeef.org>
* build(deps): bump ohos-sys from 0.2.1 to 0.2.2 (#33128)dependabot[bot]2024-08-191-1/+1
| | | | | | | | | | | | | | | Bumps [ohos-sys](https://github.com/openharmony-rs/ohos-sys) from 0.2.1 to 0.2.2. - [Changelog](https://github.com/openharmony-rs/ohos-sys/blob/main/CHANGELOG.md) - [Commits](https://github.com/openharmony-rs/ohos-sys/compare/v0.2.1...v0.2.2) --- updated-dependencies: - dependency-name: ohos-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* ohos: Remove custom touch history code (#33113)Jonathan Schwender2024-08-191-97/+13
| | | | | | The TouchHandler in servo already does the equivalent, so there is no need to have this code in the OH specific code. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* ohos: Fix log filtering (#33076)Jonathan Schwender2024-08-161-3/+2
| | | | | | * Increase default filtering to warn * fix module filtering (filter_builder was never used) Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* ohos/android: Redirect stdout/stderr to `log` sink (#32858)Jonathan Schwender2024-08-155-91/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ohos: redirect stdout/stderr to logging sink Based on the existing android `redirect_stdout_to_logcat` implementation, but using the safe abstractions from `nix` and dumping to the `log` sink, instead of directly writing the log. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * android: Use new shared implementation for logcat redirection. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * servoshell: Register cfg(production) Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Update ports/servoshell/egl/log.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> * Change info! to debug! to match original behavior on android Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Dont use lazy static to construct mutexes (#33047)Simon Wülker2024-08-142-4/+1
| | | | | | | | | | | | | | | | | | | | | * Remove usage of lazy-static in background_hang_monitor The lazy-static crate was only used to construct a mutex, but since Mutex::new is const this can be done at compiletime instead. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Remove usage of lazy-static in servoshell Lazy-static was only used to construct a mutex, but since Mutex::new is const this can simply be done at compiletime. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Set the cfg properly for the production-stripped profile (#32991)webbeef2024-08-091-2/+9
| | | Signed-off-by: webbeef <me@webbeef.org>
* build(deps): bump windows-sys from 0.52.0 to 0.59.0 (#32982)dependabot[bot]2024-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * build(deps): bump windows-sys from 0.52.0 to 0.59.0 Bumps [windows-sys](https://github.com/microsoft/windows-rs) from 0.52.0 to 0.59.0. - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/compare/0.52.0...0.59.0) --- updated-dependencies: - dependency-name: windows-sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix GetDC call to match api change Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* Fix incorrect target_os value. (#32984)Josh Matthews2024-08-091-2/+2
| | | Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* testing: Trigger a crash more reliably when panicking and hard fail is ↵Martin Robinson2024-08-062-18/+30
| | | | | | | | | | | | | active (#32947) Before when handling panics and hard-fail was activated, Servo would just exit with an error return code. This isn't interpreted as a crash by the WPT test runner. This change raises a SEGV signal instead, which means that panics should more reliably be treated as crashes. This doesn't seem to change any test results, at least any non-flaky test results. It is necessary for the test in #32782 to work though. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Pass AppInfo to OpenXrDiscovery (#32926)Daniel Adams2024-08-031-2/+5
| | | Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Remove the WebXR dependency on ancient `time@0.1` crate (#32862)Martin Robinson2024-07-261-1/+0
| | | | | | | | | | | `webxr` depends on a very old verison of `time`, which allowed serializing monotonic clock output. This isn't possible on all platforms, so newer versions of `time` do not allow this. In order to stop using the old 0.1 versions of `time` we have to stop relying on times passed from `webxr` to Servo. This change does that, at the cost of removing the XR profiling feature. It has to be rewritten in another way in the `webxr` crate. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* build(deps): bump env_filter from 0.1.1 to 0.1.2 (#32856)dependabot[bot]2024-07-251-1/+1
| | | | | | | | | | | | | | | | Bumps [env_filter](https://github.com/rust-cli/env_logger) from 0.1.1 to 0.1.2. - [Release notes](https://github.com/rust-cli/env_logger/releases) - [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-cli/env_logger/compare/env_filter-v0.1.1...env_filter-v0.1.2) --- updated-dependencies: - dependency-name: env_filter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* clippy: ports/servoshell/desktop (#32847)Rémy SAISSY2024-07-241-0/+1
| | | Signed-off-by: Rémy Saissy <remy.saissy@gmail.com>
* build(deps): bump env_filter from 0.1.0 to 0.1.1 (#32837)dependabot[bot]2024-07-231-1/+1
| | | | | | | | | | | | | | | | Bumps [env_filter](https://github.com/rust-cli/env_logger) from 0.1.0 to 0.1.1. - [Release notes](https://github.com/rust-cli/env_logger/releases) - [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-cli/env_logger/compare/env_filter-v0.1.0...env_filter-v0.1.1) --- updated-dependencies: - dependency-name: env_filter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* ohos: Bump ohos-sys to v0.2.1 (#32834)Jonathan Schwender2024-07-233-7/+5
| | | | | | | | | | | | | * ohos: Use ohos-sys from crates.io Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * ohos: Bump ohos-sys to v0.2.1 Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* Gamepad: Implement GamepadHapticActuator (#32046)Daniel Adams2024-07-204-7/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement Servo side of GamepadHapticActuator Signed-off-by: Daniel Adams <msub2official@gmail.com> * Get build working Signed-off-by: Daniel Adams <msub2official@gmail.com> * Create effect handling on embedder side Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update tracing for GamepadHapticEffect Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update gilrs to point to commit with effect complete event Signed-off-by: Daniel Adams <msub2official@gmail.com> * Implement playing and preempting haptic effects Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update IDL to add trigger rumble Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update WPT expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Handle stopping haptic effects from reset() Signed-off-by: Daniel Adams <msub2official@gmail.com> * ./mach fmt, fix test-tidy issues Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add extra validity checks for trigger rumble Signed-off-by: Daniel Adams <msub2official@gmail.com> * Retrieve supported haptic effects from embedder Signed-off-by: Daniel Adams <msub2official@gmail.com> * Fix test expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing spec link, pin gilrs commit Signed-off-by: Daniel Adams <msub2official@gmail.com> * servoshell cargo formatting Signed-off-by: Daniel Adams <msub2official@gmail.com> * Fix Cargo.toml Signed-off-by: Daniel Adams <msub2official@gmail.com> * Additional comments, realm proof, naming Signed-off-by: Daniel Adams <msub2official@gmail.com> * ./mach fmt Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update gilrs rev to gilrs-core 0.5.12 release Signed-off-by: Daniel Adams <msub2official@gmail.com> * Implement sequence ids for gamepad haptic promises Signed-off-by: Daniel Adams <msub2official@gmail.com> * Take playing effect promise instead of cloning Signed-off-by: Daniel Adams <msub2official@gmail.com> * Implement listener for reset function Signed-off-by: Daniel Adams <msub2official@gmail.com> * Fix Cargo.lock Signed-off-by: Daniel Adams <msub2official@gmail.com> * Restructure IPC listeners, add comments, handle visibility change Signed-off-by: Daniel Adams <msub2official@gmail.com> * Check that haptic effect still exists before handling ff completion event Signed-off-by: Daniel Adams <msub2official@gmail.com> * Visibility steps, add InRealm bindings for promises Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add Gamepad EmbedderMsg arms to egl servo_glue Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Enable OpenXR backend from the WebXR crate (#32817)Daniel Adams2024-07-203-6/+28
| | | | | | | | | | | | | | | | | * Enable OpenXR backend from the WebXR crate Signed-off-by: Daniel Adams <msub2official@gmail.com> * Ensure openxr feature is only included on windows Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add cfgs for OpenXR usages Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* ohos: Add default log filter (#32760)Jonathan Schwender2024-07-122-0/+18
| | | Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* Move legacy layout behind a feature flag (#32759)Jonathan Schwender2024-07-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | * Move legacy layout behind a feature flag For now the new feature flag would still be enabled by default, but disabling the `layout_2013` feature, gives the following binary size improvements for servoshell on Linux: - in debug mode from 1278MB -> 1201 MB - in release mode from 144MB -> 140MB - in production mode from 108MB -> 106MB Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Update components/servo/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* shell: set `no-wgl` flag in servoshell instead (#32753)Ngo Iok Ui (Wu Yu Wei)2024-07-101-1/+1
| | | | | | | | | | | | | * Set no-wgl flag in servoshell instead Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Remove unused comment Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> --------- Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
* build(deps): bump cc from 1.0.106 to 1.1.0 (#32746)dependabot[bot]2024-07-101-1/+1
| | | | | | | | | | | | | | | | Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.0.106 to 1.1.0. - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.106...cc-v1.1.0) --- updated-dependencies: - dependency-name: cc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump vergen from 8.3.1 to 8.3.2 (#32748)dependabot[bot]2024-07-101-1/+1
| | | | | | | | | | | | | | | Bumps [vergen](https://github.com/rustyhorde/vergen) from 8.3.1 to 8.3.2. - [Release notes](https://github.com/rustyhorde/vergen/releases) - [Commits](https://github.com/rustyhorde/vergen/commits) --- updated-dependencies: - dependency-name: vergen dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump gilrs from 0.10.7 to 0.10.8 (#32734)dependabot[bot]2024-07-081-1/+1
| | | | | | | | | | | | | | Bumps [gilrs](https://gitlab.com/gilrs-project/gilrs) from 0.10.7 to 0.10.8. - [Commits](https://gitlab.com/gilrs-project/gilrs/compare/v0.10.7...v0.10.8) --- updated-dependencies: - dependency-name: gilrs dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>