mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
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:
committed by
Andreas Kling
parent
b08d43a5d3
commit
7aea87c9df
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user