mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:05:06 +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
|
@ -575,6 +575,16 @@ void OutOfProcessWebView::set_is_webdriver_active(bool is_webdriver_enabled)
|
|||
client().async_set_is_webdriver_active(is_webdriver_enabled);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_window_position(Gfx::IntPoint const& position)
|
||||
{
|
||||
client().async_set_window_position(position);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_window_size(Gfx::IntSize const& size)
|
||||
{
|
||||
client().async_set_window_size(size);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::focusin_event(GUI::FocusEvent&)
|
||||
{
|
||||
client().async_set_has_focus(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue