mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 01:05:08 +00:00
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:
parent
7cb7bcb924
commit
c15f9e7593
8 changed files with 30 additions and 1 deletions
|
@ -82,3 +82,11 @@ void WebContentClient::handle(const Messages::WebContentClient::DidLayout& messa
|
|||
#endif
|
||||
m_view.notify_server_did_layout({}, message.content_size());
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidChangeTitle& message)
|
||||
{
|
||||
#ifdef DEBUG_SPAM
|
||||
dbg() << "handle: WebContentClient::DidChangeTitle! title=" << message.title();
|
||||
#endif
|
||||
m_view.notify_server_did_change_title({}, message.title());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue