mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibWeb+LibWebView+WebContent: Implement more <input type=file> behavior
We had previous implemented some plumbing for file input elements in
commit 636602a54e
.
This implements the return path for chromes to inform WebContent of the
file(s) the user selected. This patch includes a dummy implementation
for headless-browser to enable testing.
This commit is contained in:
parent
435c2c24d1
commit
108521a566
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/trflynn89
Commit: 108521a566
Pull-request: https://github.com/SerenityOS/serenity/pull/23346
23 changed files with 307 additions and 5 deletions
|
@ -250,6 +250,11 @@ void ViewImplementation::color_picker_update(Optional<Color> picked_color, Web::
|
|||
client().async_color_picker_update(page_id(), picked_color, state);
|
||||
}
|
||||
|
||||
void ViewImplementation::file_picker_closed(Vector<Web::HTML::SelectedFile> selected_files)
|
||||
{
|
||||
client().async_file_picker_closed(page_id(), move(selected_files));
|
||||
}
|
||||
|
||||
void ViewImplementation::select_dropdown_closed(Optional<String> value)
|
||||
{
|
||||
client().async_select_dropdown_closed(page_id(), value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue