mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:37:44 +00:00
Browser: Inform WebView processes of the browser window's position/size
This commit is contained in:
parent
6aea60e6ee
commit
325e3c7bc6
5 changed files with 53 additions and 0 deletions
|
@ -545,6 +545,16 @@ void Tab::action_left(GUI::Action&)
|
|||
m_statusbar->set_override_text({});
|
||||
}
|
||||
|
||||
void Tab::window_position_changed(Gfx::IntPoint const& position)
|
||||
{
|
||||
m_web_content_view->set_window_position(position);
|
||||
}
|
||||
|
||||
void Tab::window_size_changed(Gfx::IntSize const& size)
|
||||
{
|
||||
m_web_content_view->set_window_size(size);
|
||||
}
|
||||
|
||||
BrowserWindow const& Tab::window() const
|
||||
{
|
||||
return static_cast<BrowserWindow const&>(*Widget::window());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue