mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:27:42 +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
|
@ -655,6 +655,16 @@ void ConnectionFromClient::set_is_webdriver_active(bool is_webdriver_active)
|
|||
m_page_host->set_is_webdriver_active(is_webdriver_active);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_window_position(Gfx::IntPoint const& position)
|
||||
{
|
||||
m_page_host->set_window_position(position);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_window_size(Gfx::IntSize const& size)
|
||||
{
|
||||
m_page_host->set_window_size(size);
|
||||
}
|
||||
|
||||
Messages::WebContentServer::GetLocalStorageEntriesResponse ConnectionFromClient::get_local_storage_entries()
|
||||
{
|
||||
auto* document = page().top_level_browsing_context().active_document();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue