mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 07:29:53 +00:00
LibWeb+WebContent+WebDriver+UI: Make window min/maximize asynchronous
This follows suit of previous changes to never block the WebContent process in WebDriver endpoints.
This commit is contained in:
parent
9e10010c54
commit
3ca2ee9c72
Notes:
github-actions[bot]
2024-10-29 11:04:23 +00:00
Author: https://github.com/trflynn89
Commit: 3ca2ee9c72
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2028
Reviewed-by: https://github.com/tcl3 ✅
14 changed files with 156 additions and 122 deletions
|
@ -508,34 +508,28 @@ void WebContentClient::did_request_resize_window(u64 page_id, Gfx::IntSize size)
|
|||
}
|
||||
}
|
||||
|
||||
Messages::WebContentClient::DidRequestMaximizeWindowResponse WebContentClient::did_request_maximize_window(u64 page_id)
|
||||
void WebContentClient::did_request_maximize_window(u64 page_id)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value()) {
|
||||
if (view->on_maximize_window)
|
||||
return view->on_maximize_window();
|
||||
view->on_maximize_window();
|
||||
}
|
||||
|
||||
return Gfx::IntRect {};
|
||||
}
|
||||
|
||||
Messages::WebContentClient::DidRequestMinimizeWindowResponse WebContentClient::did_request_minimize_window(u64 page_id)
|
||||
void WebContentClient::did_request_minimize_window(u64 page_id)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value()) {
|
||||
if (view->on_minimize_window)
|
||||
return view->on_minimize_window();
|
||||
view->on_minimize_window();
|
||||
}
|
||||
|
||||
return Gfx::IntRect {};
|
||||
}
|
||||
|
||||
Messages::WebContentClient::DidRequestFullscreenWindowResponse WebContentClient::did_request_fullscreen_window(u64 page_id)
|
||||
void WebContentClient::did_request_fullscreen_window(u64 page_id)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value()) {
|
||||
if (view->on_fullscreen_window)
|
||||
return view->on_fullscreen_window();
|
||||
view->on_fullscreen_window();
|
||||
}
|
||||
|
||||
return Gfx::IntRect {};
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_file(u64 page_id, ByteString const& path, i32 request_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue