mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
LibWeb+WebContent: Take advantage of IPC encoding improvements
This removes a couple of places where we were constructing strings or vectors just to transfer data over IPC. And passes some values by const& to remove clangd noise.
This commit is contained in:
parent
68947d55d9
commit
62912b985a
Notes:
github-actions[bot]
2025-03-09 15:15:48 +00:00
Author: https://github.com/trflynn89
Commit: 62912b985a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3865
11 changed files with 50 additions and 51 deletions
|
@ -409,13 +409,13 @@ void Page::color_picker_update(Optional<Color> picked_color, HTML::ColorPickerUp
|
|||
}
|
||||
}
|
||||
|
||||
void Page::did_request_file_picker(WeakPtr<HTML::HTMLInputElement> target, HTML::FileFilter accepted_file_types, HTML::AllowMultipleFiles allow_multiple_files)
|
||||
void Page::did_request_file_picker(WeakPtr<HTML::HTMLInputElement> target, HTML::FileFilter const& accepted_file_types, HTML::AllowMultipleFiles allow_multiple_files)
|
||||
{
|
||||
if (m_pending_non_blocking_dialog == PendingNonBlockingDialog::None) {
|
||||
m_pending_non_blocking_dialog = PendingNonBlockingDialog::FilePicker;
|
||||
m_pending_non_blocking_dialog_target = move(target);
|
||||
|
||||
m_client->page_did_request_file_picker(move(accepted_file_types), allow_multiple_files);
|
||||
m_client->page_did_request_file_picker(accepted_file_types, allow_multiple_files);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -467,10 +467,10 @@ void Page::unregister_media_element(Badge<HTML::HTMLMediaElement>, UniqueNodeID
|
|||
});
|
||||
}
|
||||
|
||||
void Page::did_request_media_context_menu(UniqueNodeID media_id, CSSPixelPoint position, ByteString const& target, unsigned modifiers, MediaContextMenu menu)
|
||||
void Page::did_request_media_context_menu(UniqueNodeID media_id, CSSPixelPoint position, ByteString const& target, unsigned modifiers, MediaContextMenu const& menu)
|
||||
{
|
||||
m_media_context_menu_element_id = media_id;
|
||||
client().page_did_request_media_context_menu(position, target, modifiers, move(menu));
|
||||
client().page_did_request_media_context_menu(position, target, modifiers, menu);
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<void> Page::toggle_media_play_state()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue