mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +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
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ private:
|
|||
virtual void page_did_invalidate(const Gfx::IntRect&) override;
|
||||
virtual void page_did_change_selection() override;
|
||||
virtual void page_did_layout() override;
|
||||
virtual void page_did_change_title(const String&) override;
|
||||
|
||||
explicit PageHost(ClientConnection&);
|
||||
|
||||
|
|
|
@ -5,4 +5,5 @@ endpoint WebContentClient = 90
|
|||
DidInvalidateContentRect(Gfx::IntRect content_rect) =|
|
||||
DidChangeSelection() =|
|
||||
DidLayout(Gfx::IntSize content_size) =|
|
||||
DidChangeTitle(String title) =|
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue