2021-07-02 21:40:44 -07:00
|
|
|
#include <AK/URL.h>
|
|
|
|
|
#include <LibCore/AnonymousBuffer.h>
|
2023-09-19 01:51:48 +02:00
|
|
|
#include <LibGfx/Color.h>
|
2021-07-02 21:40:44 -07:00
|
|
|
#include <LibGfx/ShareableBitmap.h>
|
2022-11-11 09:23:24 -05:00
|
|
|
#include <LibWeb/Cookie/Cookie.h>
|
2022-04-30 11:21:21 +02:00
|
|
|
#include <LibWeb/Cookie/ParsedCookie.h>
|
2023-11-23 12:22:23 -05:00
|
|
|
#include <LibWeb/CSS/Selector.h>
|
2023-03-20 18:39:20 -04:00
|
|
|
#include <LibWeb/HTML/ActivateTab.h>
|
2023-12-07 15:53:49 +01:00
|
|
|
#include <LibWeb/HTML/SelectItem.h>
|
2024-01-30 20:05:00 -07:00
|
|
|
#include <LibWeb/HTML/WebViewHints.h>
|
2023-06-16 10:51:38 -04:00
|
|
|
#include <LibWeb/Page/Page.h>
|
2023-12-03 11:49:08 -05:00
|
|
|
#include <LibWebView/Attribute.h>
|
2024-01-06 13:13:59 -07:00
|
|
|
#include <LibWebView/SocketPair.h>
|
2021-07-02 21:40:44 -07:00
|
|
|
|
2021-04-25 13:19:53 +02:00
|
|
|
endpoint WebContentClient
|
2020-06-17 17:31:42 +02:00
|
|
|
{
|
2022-11-10 00:29:35 +01:00
|
|
|
did_start_loading(URL url, bool is_redirect) =|
|
2021-05-03 15:52:56 +02:00
|
|
|
did_finish_loading(URL url) =|
|
2022-11-11 13:33:11 -05:00
|
|
|
did_request_navigate_back() =|
|
|
|
|
|
did_request_navigate_forward() =|
|
|
|
|
|
did_request_refresh() =|
|
2024-01-07 10:35:45 -05:00
|
|
|
did_paint(Gfx::IntRect content_rect, i32 bitmap_id) =|
|
2021-05-03 15:52:56 +02:00
|
|
|
did_request_cursor_change(i32 cursor_type) =|
|
|
|
|
|
did_layout(Gfx::IntSize content_size) =|
|
2023-12-16 17:49:34 +03:30
|
|
|
did_change_title(ByteString title) =|
|
2021-09-08 11:22:44 +01:00
|
|
|
did_request_scroll(i32 x_delta, i32 y_delta) =|
|
2021-09-08 11:44:36 +01:00
|
|
|
did_request_scroll_to(Gfx::IntPoint scroll_position) =|
|
2023-12-16 17:49:34 +03:30
|
|
|
did_enter_tooltip_area(Gfx::IntPoint content_position, ByteString title) =|
|
2021-05-03 15:52:56 +02:00
|
|
|
did_leave_tooltip_area() =|
|
|
|
|
|
did_hover_link(URL url) =|
|
|
|
|
|
did_unhover_link() =|
|
2023-12-16 17:49:34 +03:30
|
|
|
did_click_link(URL url, ByteString target, unsigned modifiers) =|
|
|
|
|
|
did_middle_click_link(URL url, ByteString target, unsigned modifiers) =|
|
2021-05-03 15:52:56 +02:00
|
|
|
did_request_context_menu(Gfx::IntPoint content_position) =|
|
2023-12-16 17:49:34 +03:30
|
|
|
did_request_link_context_menu(Gfx::IntPoint content_position, URL url, ByteString target, unsigned modifiers) =|
|
|
|
|
|
did_request_image_context_menu(Gfx::IntPoint content_position, URL url, ByteString target, unsigned modifiers, Gfx::ShareableBitmap bitmap) =|
|
|
|
|
|
did_request_media_context_menu(Gfx::IntPoint content_position, ByteString target, unsigned modifiers, Web::Page::MediaContextMenu menu) =|
|
2023-03-13 17:30:51 -04:00
|
|
|
did_request_alert(String message) =|
|
|
|
|
|
did_request_confirm(String message) =|
|
|
|
|
|
did_request_prompt(String message, String default_) =|
|
|
|
|
|
did_request_set_prompt_text(String message) =|
|
2022-11-16 06:58:14 -05:00
|
|
|
did_request_accept_dialog() =|
|
|
|
|
|
did_request_dismiss_dialog() =|
|
2023-12-16 17:49:34 +03:30
|
|
|
did_get_source(URL url, ByteString source) =|
|
2023-12-30 09:30:27 -05:00
|
|
|
|
2023-12-30 09:06:22 -05:00
|
|
|
did_inspect_dom_tree(ByteString dom_tree) =|
|
2023-12-30 09:30:27 -05:00
|
|
|
did_inspect_dom_node(bool has_style, ByteString computed_style, ByteString resolved_style, ByteString custom_properties, ByteString node_box_sizing, ByteString aria_properties_state) =|
|
2023-12-30 09:06:22 -05:00
|
|
|
did_inspect_accessibility_tree(ByteString accessibility_tree) =|
|
2023-12-30 09:42:24 -05:00
|
|
|
did_get_hovered_node_id(i32 node_id) =|
|
2023-12-30 10:08:33 -05:00
|
|
|
did_finish_editing_dom_node(Optional<i32> node_id) =|
|
2023-12-30 14:32:50 -05:00
|
|
|
did_get_dom_node_html(String html) =|
|
2023-12-30 09:30:27 -05:00
|
|
|
|
2023-12-31 09:51:02 -05:00
|
|
|
did_take_screenshot(Gfx::ShareableBitmap screenshot) =|
|
|
|
|
|
|
2021-05-03 15:52:56 +02:00
|
|
|
did_change_favicon(Gfx::ShareableBitmap favicon) =|
|
2022-11-11 09:23:24 -05:00
|
|
|
did_request_all_cookies(URL url) => (Vector<Web::Cookie::Cookie> cookies)
|
2024-01-26 11:20:10 -05:00
|
|
|
did_request_named_cookie(URL url, String name) => (Optional<Web::Cookie::Cookie> cookie)
|
2024-01-26 11:14:42 -05:00
|
|
|
did_request_cookie(URL url, Web::Cookie::Source source) => (String cookie)
|
|
|
|
|
did_set_cookie(URL url, Web::Cookie::ParsedCookie cookie, Web::Cookie::Source source) => ()
|
2022-11-28 11:24:04 -05:00
|
|
|
did_update_cookie(Web::Cookie::Cookie cookie) =|
|
2022-02-20 17:03:39 -05:00
|
|
|
did_update_resource_count(i32 count_waiting) =|
|
2024-01-30 20:05:00 -07:00
|
|
|
did_request_new_web_view(Web::HTML::ActivateTab activate_tab, Web::HTML::WebViewHints hints, Optional<u64> page_index) => (String handle)
|
2023-03-20 19:52:00 -04:00
|
|
|
did_request_activate_tab() =|
|
2023-03-07 06:10:26 +03:00
|
|
|
did_close_browsing_context() =|
|
2022-11-09 09:51:39 -05:00
|
|
|
did_request_restore_window() =|
|
|
|
|
|
did_request_reposition_window(Gfx::IntPoint position) => (Gfx::IntPoint window_position)
|
|
|
|
|
did_request_resize_window(Gfx::IntSize size) => (Gfx::IntSize window_size)
|
2022-11-09 10:04:09 -05:00
|
|
|
did_request_maximize_window() => (Gfx::IntRect window_rect)
|
|
|
|
|
did_request_minimize_window() => (Gfx::IntRect window_rect)
|
2022-11-09 19:09:17 +01:00
|
|
|
did_request_fullscreen_window() => (Gfx::IntRect window_rect)
|
2023-12-16 17:49:34 +03:30
|
|
|
did_request_file(ByteString path, i32 request_id) =|
|
2023-09-04 11:32:40 +02:00
|
|
|
did_request_color_picker(Color current_color) =|
|
2023-12-07 15:53:49 +01:00
|
|
|
did_request_select_dropdown(Gfx::IntPoint content_position, i32 minimum_width, Vector<Web::HTML::SelectItem> items) =|
|
2022-11-21 16:07:47 +00:00
|
|
|
did_finish_handling_input_event(bool event_was_accepted) =|
|
2023-09-19 01:51:48 +02:00
|
|
|
did_change_theme_color(Gfx::Color color) =|
|
2023-11-10 13:35:41 -05:00
|
|
|
did_insert_clipboard_entry(String data, String presentation_style, String mime_type) =|
|
2021-09-04 11:14:25 +01:00
|
|
|
|
|
|
|
|
did_output_js_console_message(i32 message_index) =|
|
2023-12-16 17:49:34 +03:30
|
|
|
did_get_js_console_messages(i32 start_index, Vector<ByteString> message_types, Vector<ByteString> messages) =|
|
2021-09-04 11:14:25 +01:00
|
|
|
|
2023-09-14 19:17:32 +02:00
|
|
|
did_finish_text_test() =|
|
|
|
|
|
|
2024-01-06 13:13:59 -07:00
|
|
|
request_worker_agent() => (WebView::SocketPair sockets) // FIXME: Add required attributes to select a SharedWorker Agent
|
|
|
|
|
|
2023-11-23 12:22:23 -05:00
|
|
|
inspector_did_load() =|
|
2023-12-10 21:00:03 +13:00
|
|
|
inspector_did_select_dom_node(i32 node_id, Optional<Web::CSS::Selector::PseudoElement::Type> pseudo_element) =|
|
2023-12-03 11:49:08 -05:00
|
|
|
inspector_did_set_dom_node_text(i32 node_id, String text) =|
|
|
|
|
|
inspector_did_set_dom_node_tag(i32 node_id, String tag) =|
|
2023-12-05 16:43:14 -05:00
|
|
|
inspector_did_add_dom_node_attributes(i32 node_id, Vector<WebView::Attribute> attributes) =|
|
2023-12-03 11:49:08 -05:00
|
|
|
inspector_did_replace_dom_node_attribute(i32 node_id, String name, Vector<WebView::Attribute> replacement_attributes) =|
|
2023-12-06 09:34:53 -05:00
|
|
|
inspector_did_request_dom_tree_context_menu(i32 node_id, Gfx::IntPoint position, String type, Optional<String> tag, Optional<WebView::Attribute> attribute) =|
|
2023-11-30 19:27:32 -05:00
|
|
|
inspector_did_execute_console_script(String script) =|
|
2023-11-23 12:22:23 -05:00
|
|
|
|
2020-06-17 17:31:42 +02:00
|
|
|
}
|