mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +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
14 changed files with 110 additions and 4 deletions
|
@ -358,6 +358,11 @@ void PageHost::prompt_closed(Optional<String> response)
|
|||
page().prompt_closed(move(response));
|
||||
}
|
||||
|
||||
void PageHost::color_picker_closed(Optional<Color> picked_color)
|
||||
{
|
||||
page().color_picker_closed(picked_color);
|
||||
}
|
||||
|
||||
Web::WebIDL::ExceptionOr<void> PageHost::toggle_media_play_state()
|
||||
{
|
||||
return page().toggle_media_play_state();
|
||||
|
@ -453,4 +458,9 @@ void PageHost::request_file(Web::FileRequest file_request)
|
|||
m_client.request_file(move(file_request));
|
||||
}
|
||||
|
||||
void PageHost::page_did_request_color_picker(Color current_color)
|
||||
{
|
||||
m_client.async_did_request_color_picker(current_color);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue