mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +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:
committed by
Linus Groh
parent
f7e747b68e
commit
6aea60e6ee
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user