mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb+LibWebView+WebContent: Add support for <input type="color">
This commit introduces 3 things: - Support for the color type in HTMLInputElement itself - A mechanism for handling non event loop blocking dialogs in Page - The associated plumbing up to ViewImplementation Frontends may add support for the color picker with the ViewImplementation.on_request_color_picker function
This commit is contained in:
parent
759ad905de
commit
2995a2e212
Notes:
sideshowbarker
2024-07-17 09:37:30 +09:00
Author: https://github.com/circl-lastname
Commit: 2995a2e212
Pull-request: https://github.com/SerenityOS/serenity/pull/20951
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/trflynn89
14 changed files with 110 additions and 4 deletions
|
@ -384,6 +384,12 @@ void WebContentClient::did_request_file(DeprecatedString const& path, i32 reques
|
|||
m_view.on_request_file(path, request_id);
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_color_picker(Color const& current_color)
|
||||
{
|
||||
if (m_view.on_request_color_picker)
|
||||
m_view.on_request_color_picker(current_color);
|
||||
}
|
||||
|
||||
void WebContentClient::did_finish_handling_input_event(bool event_was_accepted)
|
||||
{
|
||||
if (m_view.on_finish_handling_input_event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue