WebContent: Plumb title changes over to the WebContentView

WebContentView now fires its on_title_change hook, like Web::PageView.
We use this in the WebView test app to update the window title. :^)
This commit is contained in:
Andreas Kling 2020-07-04 23:40:17 +02:00
parent 7cb7bcb924
commit c15f9e7593
Notes: sideshowbarker 2024-07-19 05:10:19 +09:00
8 changed files with 30 additions and 1 deletions

View file

@ -124,4 +124,9 @@ void PageHost::page_did_layout()
m_client.post_message(Messages::WebContentClient::DidLayout(content_size));
}
void PageHost::page_did_change_title(const String& title)
{
m_client.post_message(Messages::WebContentClient::DidChangeTitle(title));
}
}