mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibWebView+WebConent: Add an IPC to get an element's absolute rect
This commit is contained in:
parent
77b6d0bf16
commit
995f3db384
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