mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
WebContent: Notify client when web content selection changes
The WebContentView widgets reacts to this by requesting a repaint.
This commit is contained in:
parent
8476e3933b
commit
a4b5350aff
7 changed files with 27 additions and 0 deletions
|
@ -104,4 +104,9 @@ void PageHost::page_did_invalidate(const Gfx::IntRect& content_rect)
|
|||
m_client.post_message(Messages::WebContentClient::DidInvalidateContentRect(content_rect));
|
||||
}
|
||||
|
||||
void PageHost::page_did_change_selection()
|
||||
{
|
||||
m_client.post_message(Messages::WebContentClient::DidChangeSelection());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ private:
|
|||
// ^PageHost
|
||||
virtual Gfx::Palette palette() const override;
|
||||
virtual void page_did_invalidate(const Gfx::IntRect&) override;
|
||||
virtual void page_did_change_selection() override;
|
||||
|
||||
explicit PageHost(ClientConnection&);
|
||||
|
||||
|
|
|
@ -3,4 +3,5 @@ endpoint WebContentClient = 90
|
|||
DidFinishLoad(URL url) =|
|
||||
DidPaint(Gfx::IntRect content_rect, i32 shbuf_id) =|
|
||||
DidInvalidateContentRect(Gfx::IntRect content_rect) =|
|
||||
DidChangeSelection() =|
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue