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