2021-07-03 04:40:44 +00:00
|
|
|
#include <LibCore/AnonymousBuffer.h>
|
2023-09-18 23:51:48 +00:00
|
|
|
#include <LibGfx/Color.h>
|
2021-07-03 04:40:44 +00:00
|
|
|
#include <LibGfx/ShareableBitmap.h>
|
2024-03-29 02:12:23 +00:00
|
|
|
#include <LibURL/URL.h>
|
2022-11-11 14:23:24 +00:00
|
|
|
#include <LibWeb/Cookie/Cookie.h>
|
2022-04-30 09:21:21 +00:00
|
|
|
#include <LibWeb/Cookie/ParsedCookie.h>
|
2023-11-23 17:22:23 +00:00
|
|
|
#include <LibWeb/CSS/Selector.h>
|
2024-08-23 10:18:35 +00:00
|
|
|
#include <LibWeb/CSS/StyleSheetIdentifier.h>
|
2023-03-20 22:39:20 +00:00
|
|
|
#include <LibWeb/HTML/ActivateTab.h>
|
2024-03-26 23:27:06 +00:00
|
|
|
#include <LibWeb/HTML/AudioPlayState.h>
|
2024-03-14 16:26:00 +00:00
|
|
|
#include <LibWeb/HTML/FileFilter.h>
|
2024-02-25 18:02:47 +00:00
|
|
|
#include <LibWeb/HTML/SelectedFile.h>
|
2023-12-07 14:53:49 +00:00
|
|
|
#include <LibWeb/HTML/SelectItem.h>
|
2024-01-31 03:05:00 +00:00
|
|
|
#include <LibWeb/HTML/WebViewHints.h>
|
2024-09-12 16:56:31 +00:00
|
|
|
#include <LibWeb/Page/EventResult.h>
|
2023-06-16 14:51:38 +00:00
|
|
|
#include <LibWeb/Page/Page.h>
|
2023-12-03 16:49:08 +00:00
|
|
|
#include <LibWebView/Attribute.h>
|
2024-03-27 17:53:07 +00:00
|
|
|
#include <LibWebView/ProcessHandle.h>
|
2024-09-19 14:40:00 +00:00
|
|
|
#include <LibWebView/PageInfo.h>
|
2021-07-03 04:40:44 +00:00
|
|
|
|
2021-04-25 11:19:53 +00:00
|
|
|
endpoint WebContentClient
|
2020-06-17 15:31:42 +00:00
|
|
|
{
|
2024-03-18 03:22:27 +00:00
|
|
|
did_start_loading(u64 page_id, URL::URL url, bool is_redirect) =|
|
|
|
|
did_finish_loading(u64 page_id, URL::URL url) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_request_refresh(u64 page_id) =|
|
|
|
|
did_paint(u64 page_id, Gfx::IntRect content_rect, i32 bitmap_id) =|
|
|
|
|
did_request_cursor_change(u64 page_id, i32 cursor_type) =|
|
|
|
|
did_change_title(u64 page_id, ByteString title) =|
|
2024-04-14 08:27:20 +00:00
|
|
|
did_change_url(u64 page_id, URL::URL url) =|
|
2024-07-02 14:48:57 +00:00
|
|
|
did_request_tooltip_override(u64 page_id, Gfx::IntPoint position, ByteString title) =|
|
|
|
|
did_stop_tooltip_override(u64 page_id) =|
|
2024-07-02 12:16:24 +00:00
|
|
|
did_enter_tooltip_area(u64 page_id, ByteString title) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_leave_tooltip_area(u64 page_id) =|
|
2024-03-18 03:22:27 +00:00
|
|
|
did_hover_link(u64 page_id, URL::URL url) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_unhover_link(u64 page_id) =|
|
2024-03-18 03:22:27 +00:00
|
|
|
did_click_link(u64 page_id, URL::URL url, ByteString target, unsigned modifiers) =|
|
|
|
|
did_middle_click_link(u64 page_id, URL::URL url, ByteString target, unsigned modifiers) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_request_context_menu(u64 page_id, Gfx::IntPoint content_position) =|
|
2024-03-18 03:22:27 +00:00
|
|
|
did_request_link_context_menu(u64 page_id, Gfx::IntPoint content_position, URL::URL url, ByteString target, unsigned modifiers) =|
|
|
|
|
did_request_image_context_menu(u64 page_id, Gfx::IntPoint content_position, URL::URL url, ByteString target, unsigned modifiers, Gfx::ShareableBitmap bitmap) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_request_media_context_menu(u64 page_id, Gfx::IntPoint content_position, ByteString target, unsigned modifiers, Web::Page::MediaContextMenu menu) =|
|
|
|
|
did_request_alert(u64 page_id, String message) =|
|
|
|
|
did_request_confirm(u64 page_id, String message) =|
|
|
|
|
did_request_prompt(u64 page_id, String message, String default_) =|
|
|
|
|
did_request_set_prompt_text(u64 page_id, String message) =|
|
|
|
|
did_request_accept_dialog(u64 page_id) =|
|
|
|
|
did_request_dismiss_dialog(u64 page_id) =|
|
2024-10-18 21:20:15 +00:00
|
|
|
did_get_source(u64 page_id, URL::URL url, URL::URL base_url, String source) =|
|
2023-12-30 14:30:27 +00:00
|
|
|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_inspect_dom_tree(u64 page_id, ByteString dom_tree) =|
|
2024-08-09 15:07:27 +00:00
|
|
|
did_inspect_dom_node(u64 page_id, bool has_style, ByteString computed_style, ByteString resolved_style, ByteString custom_properties, ByteString node_box_sizing, ByteString aria_properties_state, ByteString fonts) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_inspect_accessibility_tree(u64 page_id, ByteString accessibility_tree) =|
|
2024-10-20 08:37:44 +00:00
|
|
|
did_get_hovered_node_id(u64 page_id, Web::UniqueNodeID node_id) =|
|
|
|
|
did_finish_editing_dom_node(u64 page_id, Optional<Web::UniqueNodeID> node_id) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_get_dom_node_html(u64 page_id, String html) =|
|
2023-12-30 14:30:27 +00:00
|
|
|
|
2024-08-23 10:18:35 +00:00
|
|
|
inspector_did_list_style_sheets(u64 page_id, Vector<Web::CSS::StyleSheetIdentifier> style_sheets) =|
|
|
|
|
inspector_did_request_style_sheet_source(u64 page_id, Web::CSS::StyleSheetIdentifier identifier) =|
|
2024-10-18 21:20:15 +00:00
|
|
|
did_get_style_sheet_source(u64 page_id, Web::CSS::StyleSheetIdentifier identifier, URL::URL base_url, String source) =|
|
2024-08-23 10:18:35 +00:00
|
|
|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_take_screenshot(u64 page_id, Gfx::ShareableBitmap screenshot) =|
|
2023-12-31 14:51:02 +00:00
|
|
|
|
2024-09-19 14:40:00 +00:00
|
|
|
did_get_internal_page_info(u64 page_id, WebView::PageInfoType type, String info) =|
|
|
|
|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_change_favicon(u64 page_id, Gfx::ShareableBitmap favicon) =|
|
2024-09-22 17:25:18 +00:00
|
|
|
did_request_all_cookies(URL::URL url) => (Vector<Web::Cookie::Cookie> cookies)
|
|
|
|
did_request_named_cookie(URL::URL url, String name) => (Optional<Web::Cookie::Cookie> cookie)
|
|
|
|
did_request_cookie(URL::URL url, Web::Cookie::Source source) => (String cookie)
|
|
|
|
did_set_cookie(URL::URL url, Web::Cookie::ParsedCookie cookie, Web::Cookie::Source source) => ()
|
|
|
|
did_update_cookie(Web::Cookie::Cookie cookie) =|
|
2024-10-13 12:56:46 +00:00
|
|
|
did_expire_cookies_with_time_offset(AK::Duration offset) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_update_resource_count(u64 page_id, i32 count_waiting) =|
|
|
|
|
did_request_new_web_view(u64 page_id, Web::HTML::ActivateTab activate_tab, Web::HTML::WebViewHints hints, Optional<u64> page_index) => (String handle)
|
|
|
|
did_request_activate_tab(u64 page_id) =|
|
|
|
|
did_close_browsing_context(u64 page_id) =|
|
|
|
|
did_request_restore_window(u64 page_id) =|
|
2024-10-29 03:37:11 +00:00
|
|
|
did_request_reposition_window(u64 page_id, Gfx::IntPoint position) =|
|
|
|
|
did_request_resize_window(u64 page_id, Gfx::IntSize size) =|
|
2024-10-29 03:45:18 +00:00
|
|
|
did_request_maximize_window(u64 page_id) =|
|
|
|
|
did_request_minimize_window(u64 page_id) =|
|
|
|
|
did_request_fullscreen_window(u64 page_id) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_request_file(u64 page_id, ByteString path, i32 request_id) =|
|
|
|
|
did_request_color_picker(u64 page_id, Color current_color) =|
|
2024-03-14 16:26:00 +00:00
|
|
|
did_request_file_picker(u64 page_id, Web::HTML::FileFilter accepted_file_types, Web::HTML::AllowMultipleFiles allow_multiple_files) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_request_select_dropdown(u64 page_id, Gfx::IntPoint content_position, i32 minimum_width, Vector<Web::HTML::SelectItem> items) =|
|
2024-09-12 16:56:31 +00:00
|
|
|
did_finish_handling_input_event(u64 page_id, Web::EventResult event_result) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_change_theme_color(u64 page_id, Gfx::Color color) =|
|
|
|
|
did_insert_clipboard_entry(u64 page_id, String data, String presentation_style, String mime_type) =|
|
2024-04-13 21:12:55 +00:00
|
|
|
did_update_navigation_buttons_state(u64 page_id, bool back_enabled, bool forward_enabled) =|
|
2024-06-17 15:50:57 +00:00
|
|
|
did_allocate_backing_stores(u64 page_id, i32 front_bitmap_id, Gfx::ShareableBitmap front_bitmap, i32 back_bitmap_id, Gfx::ShareableBitmap back_bitmap) =|
|
2021-09-04 10:14:25 +00:00
|
|
|
|
2024-03-26 23:27:06 +00:00
|
|
|
did_change_audio_play_state(u64 page_id, Web::HTML::AudioPlayState play_state) =|
|
|
|
|
|
2024-02-03 01:00:48 +00:00
|
|
|
did_output_js_console_message(u64 page_id, i32 message_index) =|
|
|
|
|
did_get_js_console_messages(u64 page_id, i32 start_index, Vector<ByteString> message_types, Vector<ByteString> messages) =|
|
2021-09-04 10:14:25 +00:00
|
|
|
|
2024-10-02 16:38:10 +00:00
|
|
|
did_finish_text_test(u64 page_id, String text) =|
|
2023-09-14 17:17:32 +00:00
|
|
|
|
2024-06-09 17:35:32 +00:00
|
|
|
did_find_in_page(u64 page_id, size_t current_match_index, Optional<size_t> total_match_count) =|
|
|
|
|
|
2024-04-18 00:44:39 +00:00
|
|
|
request_worker_agent(u64 page_id) => (IPC::File socket) // FIXME: Add required attributes to select a SharedWorker Agent
|
2024-01-06 20:13:59 +00:00
|
|
|
|
2024-02-03 01:00:48 +00:00
|
|
|
inspector_did_load(u64 page_id) =|
|
2024-10-20 08:37:44 +00:00
|
|
|
inspector_did_select_dom_node(u64 page_id, Web::UniqueNodeID node_id, Optional<Web::CSS::Selector::PseudoElement::Type> pseudo_element) =|
|
|
|
|
inspector_did_set_dom_node_text(u64 page_id, Web::UniqueNodeID node_id, String text) =|
|
|
|
|
inspector_did_set_dom_node_tag(u64 page_id, Web::UniqueNodeID node_id, String tag) =|
|
|
|
|
inspector_did_add_dom_node_attributes(u64 page_id, Web::UniqueNodeID node_id, Vector<WebView::Attribute> attributes) =|
|
|
|
|
inspector_did_replace_dom_node_attribute(u64 page_id, Web::UniqueNodeID node_id, size_t attribute_index, Vector<WebView::Attribute> replacement_attributes) =|
|
|
|
|
inspector_did_request_dom_tree_context_menu(u64 page_id, Web::UniqueNodeID node_id, Gfx::IntPoint position, String type, Optional<String> tag, Optional<size_t> attribute_index) =|
|
2024-09-06 17:22:16 +00:00
|
|
|
inspector_did_request_cookie_context_menu(u64 page_id, size_t cookie_index, Gfx::IntPoint position) =|
|
2024-02-03 01:00:48 +00:00
|
|
|
inspector_did_execute_console_script(u64 page_id, String script) =|
|
2024-08-19 16:11:39 +00:00
|
|
|
inspector_did_export_inspector_html(u64 page_id, String html) =|
|
2023-11-23 17:22:23 +00:00
|
|
|
|
2020-06-17 15:31:42 +00:00
|
|
|
}
|