mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:44:59 +00:00
LibWeb: Create a shadow tree for <input type=file> elements
This creates a button to prompt users to select a file, and a label to show information about the selected file(s). Clicking either shadow element will activate the input element.
This commit is contained in:
parent
8319c7cfb8
commit
435c2c24d1
6 changed files with 119 additions and 3 deletions
|
@ -226,6 +226,7 @@ private:
|
|||
void update_shadow_tree();
|
||||
void create_text_input_shadow_tree();
|
||||
void create_color_input_shadow_tree();
|
||||
void create_file_input_shadow_tree();
|
||||
void create_range_input_shadow_tree();
|
||||
WebIDL::ExceptionOr<void> run_input_activation_behavior(DOM::Event const&);
|
||||
void set_checked_within_group();
|
||||
|
@ -255,6 +256,10 @@ private:
|
|||
void update_color_well_element();
|
||||
JS::GCPtr<DOM::Element> m_color_well_element;
|
||||
|
||||
void update_file_input_shadow_tree();
|
||||
JS::GCPtr<DOM::Element> m_file_button;
|
||||
JS::GCPtr<DOM::Element> m_file_label;
|
||||
|
||||
void update_slider_thumb_element();
|
||||
JS::GCPtr<DOM::Element> m_slider_thumb;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue