WebContent: Notify client when web content selection changes

The WebContentView widgets reacts to this by requesting a repaint.
This commit is contained in:
Andreas Kling
2020-07-04 20:57:57 +02:00
parent 8476e3933b
commit a4b5350aff
7 changed files with 27 additions and 0 deletions

View File

@@ -60,3 +60,9 @@ void WebContentClient::handle(const Messages::WebContentClient::DidInvalidateCon
// FIXME: Figure out a way to coalesce these messages to reduce unnecessary painting
m_view.notify_server_did_invalidate_content_rect({}, message.content_rect());
}
void WebContentClient::handle(const Messages::WebContentClient::DidChangeSelection&)
{
dbg() << "handle: WebContentClient::DidChangeSelection!";
m_view.notify_server_did_change_selection({});
}