LibWeb+LibWebView+WebContent: Add basic find in page functionality

This allows the browser to send a query to the WebContent process,
which will search the page for the given string and highlight any
occurrences of that string.
This commit is contained in:
Tim Ledbetter
2024-05-29 20:09:33 +01:00
committed by Andreas Kling
parent b08d43a5d3
commit 7aea87c9df
9 changed files with 197 additions and 0 deletions

View File

@@ -180,6 +180,21 @@ void ViewImplementation::paste(String const& text)
client().async_paste(page_id(), text);
}
void ViewImplementation::find_in_page(String const& query)
{
client().async_find_in_page(page_id(), query);
}
void ViewImplementation::find_in_page_next_match()
{
client().async_find_in_page_next_match(page_id());
}
void ViewImplementation::find_in_page_previous_match()
{
client().async_find_in_page_previous_match(page_id());
}
void ViewImplementation::get_source()
{
client().async_get_source(page_id());