mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibWeb: Support setting the cursor in OutOfProcessWebView
This commit is contained in:
parent
fc9225db33
commit
bedcd9cd88
Notes:
sideshowbarker
2024-07-18 21:50:41 +09:00
Author: https://github.com/ant1441
Commit: bedcd9cd88
Pull-request: https://github.com/SerenityOS/serenity/pull/5558
7 changed files with 23 additions and 0 deletions
|
@ -74,6 +74,15 @@ void WebContentClient::handle(const Messages::WebContentClient::DidChangeSelecti
|
|||
m_view.notify_server_did_change_selection({});
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidRequestCursorChange& message)
|
||||
{
|
||||
if (message.cursor_type() < 0 || message.cursor_type() >= (i32)Gfx::StandardCursor::__Count) {
|
||||
dbgln("DidRequestCursorChange: Bad cursor type");
|
||||
return;
|
||||
}
|
||||
m_view.notify_server_did_request_cursor_change({}, (Gfx::StandardCursor)message.cursor_type());
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidLayout& message)
|
||||
{
|
||||
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidLayout! content_size={}", message.content_size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue