mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Ladybird+LibWebView: Migrate cursor changes to LibWebView callbacks
This commit is contained in:
parent
bf464665a7
commit
00fe122b0a
Notes:
sideshowbarker
2024-07-16 21:51:02 +09:00
Author: https://github.com/trflynn89
Commit: 00fe122b0a
Pull-request: https://github.com/SerenityOS/serenity/pull/20727
Reviewed-by: https://github.com/awesomekling ✅
9 changed files with 14 additions and 20 deletions
|
@ -82,7 +82,9 @@ void WebContentClient::did_request_cursor_change(i32 cursor_type)
|
|||
dbgln("DidRequestCursorChange: Bad cursor type");
|
||||
return;
|
||||
}
|
||||
m_view.notify_server_did_request_cursor_change({}, (Gfx::StandardCursor)cursor_type);
|
||||
|
||||
if (m_view.on_cursor_change)
|
||||
m_view.on_cursor_change(static_cast<Gfx::StandardCursor>(cursor_type));
|
||||
}
|
||||
|
||||
void WebContentClient::did_layout(Gfx::IntSize content_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue