1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:47:35 +00:00

Browser+LibWebView+WebContent: Add IPC to re[store,size,position] window

Requests to restore, resize, and reposition Browser windows will be
coming from the WebContent process rather than the WebDriver process.
Add hooks to propagate these requests back up to the Browser.

The spec notes "The specification does not guarantee that the resulting
window size will exactly match that which was requested", so these new
methods return the actual new size/position.
This commit is contained in:
Timothy Flynn 2022-11-09 09:51:39 -05:00 committed by Linus Groh
parent 71aba39562
commit 9505928fdb
7 changed files with 75 additions and 2 deletions

View file

@ -38,6 +38,9 @@ endpoint WebContentClient
did_request_cookie(URL url, u8 source) => (String cookie)
did_set_cookie(URL url, Web::Cookie::ParsedCookie cookie, u8 source) =|
did_update_resource_count(i32 count_waiting) =|
did_request_restore_window() =|
did_request_reposition_window(Gfx::IntPoint position) => (Gfx::IntPoint window_position)
did_request_resize_window(Gfx::IntSize size) => (Gfx::IntSize window_size)
did_request_file(String path, i32 request_id) =|
did_output_js_console_message(i32 message_index) =|