mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb+LibWebView+WebContent: Add IPC to receive window position/size
This information will have to come from the Browser application. This adds IPCs to receive that information when it is available or changes.
This commit is contained in:
parent
f7e747b68e
commit
6aea60e6ee
8 changed files with 51 additions and 0 deletions
|
@ -76,6 +76,16 @@ void PageHost::set_is_webdriver_active(bool is_webdriver_active)
|
|||
page().set_is_webdriver_active(is_webdriver_active);
|
||||
}
|
||||
|
||||
void PageHost::set_window_position(Gfx::IntPoint const& position)
|
||||
{
|
||||
page().set_window_position(position);
|
||||
}
|
||||
|
||||
void PageHost::set_window_size(Gfx::IntSize const& size)
|
||||
{
|
||||
page().set_window_size(size);
|
||||
}
|
||||
|
||||
Web::Layout::InitialContainingBlock* PageHost::layout_root()
|
||||
{
|
||||
auto* document = page().top_level_browsing_context().active_document();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue