2021-07-03 07:40:44 +03:00
|
|
|
#include <AK/URL.h>
|
2022-02-26 19:50:31 +03:00
|
|
|
#include <LibIPC/File.h>
|
2021-07-03 07:40:44 +03:00
|
|
|
#include <LibCore/AnonymousBuffer.h>
|
2022-11-03 19:51:44 +03:00
|
|
|
#include <LibGfx/Rect.h>
|
2021-07-03 07:40:44 +03:00
|
|
|
#include <LibGfx/ShareableBitmap.h>
|
2021-10-26 19:00:10 +03:00
|
|
|
#include <LibWeb/CSS/PreferredColorScheme.h>
|
2022-03-04 19:29:05 +03:00
|
|
|
#include <LibWeb/CSS/Selector.h>
|
2022-11-02 21:02:19 +03:00
|
|
|
#include <LibWeb/WebDriver/ExecuteScript.h>
|
2021-07-03 07:40:44 +03:00
|
|
|
|
2021-04-25 14:19:53 +03:00
|
|
|
endpoint WebContentServer
|
2020-06-17 18:31:42 +03:00
|
|
|
{
|
2022-12-04 21:02:33 +03:00
|
|
|
connect_to_webdriver(DeprecatedString webdriver_ipc_path) =|
|
2022-11-08 18:03:07 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
update_system_theme(Core::AnonymousBuffer theme_buffer) =|
|
2022-12-04 21:02:33 +03:00
|
|
|
update_system_fonts(DeprecatedString default_font_query, DeprecatedString fixed_width_font_query, DeprecatedString window_title_font_query) =|
|
2021-06-13 15:16:06 +03:00
|
|
|
update_screen_rects(Vector<Gfx::IntRect> rects, u32 main_screen_index) =|
|
2020-06-17 18:31:42 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
load_url(URL url) =|
|
2022-12-04 21:02:33 +03:00
|
|
|
load_html(DeprecatedString html, URL url) =|
|
2020-06-17 18:31:42 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
add_backing_store(i32 backing_store_id, Gfx::ShareableBitmap bitmap) =|
|
|
|
|
remove_backing_store(i32 backing_store_id) =|
|
2021-01-17 01:15:32 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
paint(Gfx::IntRect content_rect, i32 backing_store_id) =|
|
|
|
|
set_viewport_rect(Gfx::IntRect rect) =|
|
2020-06-17 18:31:42 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
mouse_down(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
|
|
|
|
mouse_move(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
|
|
|
|
mouse_up(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
|
2021-12-14 01:22:28 +03:00
|
|
|
mouse_wheel(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers, i32 wheel_delta_x, i32 wheel_delta_y) =|
|
2022-06-14 20:38:32 +03:00
|
|
|
doubleclick(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
|
2020-08-03 20:58:59 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
key_down(i32 key, unsigned modifiers, u32 code_point) =|
|
2021-09-28 16:39:35 +03:00
|
|
|
key_up(i32 key, unsigned modifiers, u32 code_point) =|
|
2021-01-31 11:06:25 +03:00
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
debug_request(DeprecatedString request, DeprecatedString argument) =|
|
2021-05-03 16:52:56 +03:00
|
|
|
get_source() =|
|
2021-06-07 18:35:10 +03:00
|
|
|
inspect_dom_tree() =|
|
2022-12-19 01:49:09 +03:00
|
|
|
inspect_dom_node(i32 node_id, Optional<Web::CSS::Selector::PseudoElement> pseudo_element) => (bool has_style, DeprecatedString computed_style, DeprecatedString resolved_style, DeprecatedString custom_properties, DeprecatedString node_box_sizing)
|
2022-12-08 04:30:37 +03:00
|
|
|
inspect_accessibility_tree() =|
|
2021-08-27 19:33:10 +03:00
|
|
|
get_hovered_node_id() => (i32 node_id)
|
2022-12-04 21:02:33 +03:00
|
|
|
js_console_input(DeprecatedString js_source) =|
|
2021-09-04 13:14:25 +03:00
|
|
|
js_console_request_messages(i32 start_index) =|
|
2021-07-14 15:32:55 +03:00
|
|
|
|
2022-11-05 07:09:41 +03:00
|
|
|
take_document_screenshot() => (Gfx::ShareableBitmap data)
|
2022-10-18 13:40:14 +03:00
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
run_javascript(DeprecatedString js_source) =|
|
2021-08-24 17:56:42 +03:00
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
dump_layout_tree() => (DeprecatedString dump)
|
2021-09-08 01:55:35 +03:00
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
get_selected_text() => (DeprecatedString selection)
|
2021-07-14 15:53:55 +03:00
|
|
|
select_all() =|
|
2021-09-27 12:39:17 +03:00
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
set_content_filters(Vector<DeprecatedString> filters) =|
|
|
|
|
set_proxy_mappings(Vector<DeprecatedString> proxies, HashMap<DeprecatedString,size_t> mappings) =|
|
2021-10-26 19:00:10 +03:00
|
|
|
set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) =|
|
2022-02-06 21:03:13 +03:00
|
|
|
set_has_focus(bool has_focus) =|
|
2022-03-31 01:23:14 +03:00
|
|
|
set_is_scripting_enabled(bool is_scripting_enabled) =|
|
2023-01-12 17:35:35 +03:00
|
|
|
set_device_pixels_per_css_pixel(float device_pixels_per_css_pixel) =|
|
2022-02-06 21:03:13 +03:00
|
|
|
|
2022-11-01 21:55:53 +03:00
|
|
|
set_window_position(Gfx::IntPoint position) =|
|
|
|
|
set_window_size(Gfx::IntSize size) =|
|
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
get_local_storage_entries() => (OrderedHashMap<DeprecatedString,DeprecatedString> entries)
|
|
|
|
get_session_storage_entries() => (OrderedHashMap<DeprecatedString,DeprecatedString> entries)
|
2022-02-26 19:50:31 +03:00
|
|
|
|
|
|
|
handle_file_return(i32 error, Optional<IPC::File> file, i32 request_id) =|
|
2022-09-19 21:50:33 +03:00
|
|
|
|
|
|
|
set_system_visibility_state(bool visible) =|
|
2022-11-15 23:49:36 +03:00
|
|
|
|
|
|
|
alert_closed() =|
|
|
|
|
confirm_closed(bool accepted) =|
|
2022-12-04 21:02:33 +03:00
|
|
|
prompt_closed(DeprecatedString response) =|
|
2020-06-17 18:31:42 +03:00
|
|
|
}
|