mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 07:22:22 +00:00
LibWebView+WebConent: Add an IPC to get an element's absolute rect
This commit is contained in:
parent
77b6d0bf16
commit
995f3db384
Notes:
sideshowbarker
2024-07-17 08:25:15 +09:00
Author: https://github.com/trflynn89
Commit: 995f3db384
Pull-request: https://github.com/SerenityOS/serenity/pull/15909
Reviewed-by: https://github.com/linusg ✅
5 changed files with 40 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
#include <AK/URL.h>
|
||||
#include <LibIPC/File.h>
|
||||
#include <LibCore/AnonymousBuffer.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
#include <LibGfx/ShareableBitmap.h>
|
||||
#include <LibWeb/CSS/PreferredColorScheme.h>
|
||||
#include <LibWeb/CSS/Selector.h>
|
||||
|
@ -47,6 +48,7 @@ endpoint WebContentServer
|
|||
get_computed_value_for_element(i32 element_id, String property_name) => (String computed_value)
|
||||
get_element_text(i32 element_id) => (String text)
|
||||
get_element_tag_name(i32 element_id) => (String tag_name)
|
||||
get_element_rect(i32 element_id) => (Gfx::IntRect rect)
|
||||
|
||||
webdriver_execute_script(String body, Vector<String> json_arguments, Optional<u64> timeout, bool async) => (Web::WebDriver::ExecuteScriptResultType result_type, String json_result)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue