servo/components/shared
Martin Robinson b925c31424
libservo: Start moving WindowMethods to WebViewDelegate (#36223)
`WindowMethods` is used by the embedding layer to get information from
the embedder. This change moves the functionality for getting screen
size and `WebView` offsets to `WebViewDelegate`.

This is important because `WebView`s might be on different screens or
have different offsets on the screen itself, so it makes sense for this
to be per-`WebView` and not global to the embedder. HiDPI and animation
state functionality will move to the embedder in subsequent changes.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>

<!-- Please describe your changes on the following line: -->


---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because they just modify the
`WebView` API surface a bit.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->

<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-04-02 11:17:24 +00:00
..
background_hang_monitor script: add skeleton implementation of FontFace API (#35262) 2025-02-19 05:50:01 +00:00
base Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
bluetooth Include WebViewId into EmbedderMsg variants where possible (#35211) 2025-01-30 11:15:35 +00:00
canvas canvas: Implement line dash setters and getters (#36257) 2025-04-01 11:22:00 +00:00
compositing compositor: Remove the script channel from the compositor (#36089) 2025-03-23 11:19:27 +00:00
constellation Create a constellation_traits crate (#36088) 2025-03-22 15:49:08 +00:00
devtools Add SimulateColorScheme command and script thread handling (#36253) 2025-04-01 02:08:27 +00:00
embedder libservo: Start moving WindowMethods to WebViewDelegate (#36223) 2025-04-02 11:17:24 +00:00
fonts Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
net Refuse to provide partial response from earlier ranged request to API that did not make a range request (#36227) 2025-03-31 10:34:32 +00:00
profile metrics: Simplify ProgressiveWebMetrics (#35985) 2025-03-21 14:55:00 +00:00
script libservo: Remove a couple EmbedderMethods (#36276) 2025-04-01 22:59:50 +00:00
script_layout libservo: Remove a couple EmbedderMethods (#36276) 2025-04-01 22:59:50 +00:00
webrender libservo: Start moving WindowMethods to WebViewDelegate (#36223) 2025-04-02 11:17:24 +00:00
webxr Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00