Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWebView+Services+UI: Move common utilities to LibWebView #2269

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

trflynn89
Copy link
Contributor

We have a bunch of files that we recompile for each of the Ladybird, WebContent, WebWorker, WebDriver, ImageDecoder, and RequestServer targets. Each of these utilities (event loops, process helpers, etc.) can happily live in LibWebView, as all embedders of LibWebView will need these facilities anyways.

Remembered that this was a thing while working on #2251.

We currently compile the Qt event loop files multiple times, for every
target which wants to use them. This patch moves these to LibWebView as
a central location to avoid this.
@ADKaster
Copy link
Member

Hm. Is adding a dependency on the specific UI toolkit to LibWebView the right layer of abstraction? Does every user of the Qt EventLoop also need LibWebView?

@trflynn89
Copy link
Contributor Author

Does every user of the Qt EventLoop also need LibWebView?

As of right now, yes. If for some reason, we add another Qt application that doesn't want a WebView, I figure we can add a LibUI or something at that point.

@trflynn89 trflynn89 merged commit 0ff91a5 into LadybirdBrowser:master Nov 11, 2024
6 checks passed
@trflynn89 trflynn89 deleted the webview branch November 11, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants