2021-07-03 04:40:44 +00:00
|
|
|
#include <AK/URL.h>
|
|
|
|
#include <LibCore/AnonymousBuffer.h>
|
|
|
|
#include <LibGfx/ShareableBitmap.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-03-20 22:39:20 +00:00
|
|
|
#include <LibWeb/HTML/ActivateTab.h>
|
2023-06-16 14:51:38 +00:00
|
|
|
#include <LibWeb/Page/Page.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
|
|
|
{
|
2022-11-09 23:29:35 +00:00
|
|
|
did_start_loading(URL url, bool is_redirect) =|
|
2021-05-03 13:52:56 +00:00
|
|
|
did_finish_loading(URL url) =|
|
2022-11-11 18:33:11 +00:00
|
|
|
did_request_navigate_back() =|
|
|
|
|
did_request_navigate_forward() =|
|
|
|
|
did_request_refresh() =|
|
2021-05-03 13:52:56 +00:00
|
|
|
did_paint(Gfx::IntRect content_rect, i32 bitmap_id) =|
|
|
|
|
did_invalidate_content_rect(Gfx::IntRect content_rect) =|
|
|
|
|
did_change_selection() =|
|
|
|
|
did_request_cursor_change(i32 cursor_type) =|
|
|
|
|
did_layout(Gfx::IntSize content_size) =|
|
2022-12-04 18:02:33 +00:00
|
|
|
did_change_title(DeprecatedString title) =|
|
2021-09-08 10:22:44 +00:00
|
|
|
did_request_scroll(i32 x_delta, i32 y_delta) =|
|
2021-09-08 10:44:36 +00:00
|
|
|
did_request_scroll_to(Gfx::IntPoint scroll_position) =|
|
2021-05-03 13:52:56 +00:00
|
|
|
did_request_scroll_into_view(Gfx::IntRect rect) =|
|
2022-12-04 18:02:33 +00:00
|
|
|
did_enter_tooltip_area(Gfx::IntPoint content_position, DeprecatedString title) =|
|
2021-05-03 13:52:56 +00:00
|
|
|
did_leave_tooltip_area() =|
|
|
|
|
did_hover_link(URL url) =|
|
|
|
|
did_unhover_link() =|
|
2022-12-04 18:02:33 +00:00
|
|
|
did_click_link(URL url, DeprecatedString target, unsigned modifiers) =|
|
|
|
|
did_middle_click_link(URL url, DeprecatedString target, unsigned modifiers) =|
|
2021-05-03 13:52:56 +00:00
|
|
|
did_request_context_menu(Gfx::IntPoint content_position) =|
|
2022-12-04 18:02:33 +00:00
|
|
|
did_request_link_context_menu(Gfx::IntPoint content_position, URL url, DeprecatedString target, unsigned modifiers) =|
|
|
|
|
did_request_image_context_menu(Gfx::IntPoint content_position, URL url, DeprecatedString target, unsigned modifiers, Gfx::ShareableBitmap bitmap) =|
|
2023-06-16 14:51:38 +00:00
|
|
|
did_request_media_context_menu(Gfx::IntPoint content_position, DeprecatedString target, unsigned modifiers, Web::Page::MediaContextMenu menu) =|
|
2023-03-13 21:30:51 +00: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 11:58:14 +00:00
|
|
|
did_request_accept_dialog() =|
|
|
|
|
did_request_dismiss_dialog() =|
|
2022-12-04 18:02:33 +00:00
|
|
|
did_get_source(URL url, DeprecatedString source) =|
|
|
|
|
did_get_dom_tree(DeprecatedString dom_tree) =|
|
2023-05-21 13:52:03 +00:00
|
|
|
did_get_dom_node_properties(i32 node_id, DeprecatedString computed_style, DeprecatedString resolved_style, DeprecatedString custom_properties, DeprecatedString node_box_sizing_json, DeprecatedString aria_properties_state) =|
|
2022-12-08 01:30:37 +00:00
|
|
|
did_get_accessibility_tree(DeprecatedString accessibility_tree) =|
|
2021-05-03 13:52:56 +00:00
|
|
|
did_change_favicon(Gfx::ShareableBitmap favicon) =|
|
2022-11-11 14:23:24 +00:00
|
|
|
did_request_all_cookies(URL url) => (Vector<Web::Cookie::Cookie> cookies)
|
2022-12-04 18:02:33 +00:00
|
|
|
did_request_named_cookie(URL url, DeprecatedString name) => (Optional<Web::Cookie::Cookie> cookie)
|
|
|
|
did_request_cookie(URL url, u8 source) => (DeprecatedString cookie)
|
2021-05-03 13:52:56 +00:00
|
|
|
did_set_cookie(URL url, Web::Cookie::ParsedCookie cookie, u8 source) =|
|
2022-11-28 16:24:04 +00:00
|
|
|
did_update_cookie(Web::Cookie::Cookie cookie) =|
|
2022-02-20 22:03:39 +00:00
|
|
|
did_update_resource_count(i32 count_waiting) =|
|
2023-03-20 22:39:20 +00:00
|
|
|
did_request_new_tab(Web::HTML::ActivateTab activate_tab) => (String handle)
|
2023-03-20 23:52:00 +00:00
|
|
|
did_request_activate_tab() =|
|
2023-03-07 03:10:26 +00:00
|
|
|
did_close_browsing_context() =|
|
2022-11-09 14:51:39 +00: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 15:04:09 +00:00
|
|
|
did_request_maximize_window() => (Gfx::IntRect window_rect)
|
|
|
|
did_request_minimize_window() => (Gfx::IntRect window_rect)
|
2022-11-09 18:09:17 +00:00
|
|
|
did_request_fullscreen_window() => (Gfx::IntRect window_rect)
|
2022-12-04 18:02:33 +00:00
|
|
|
did_request_file(DeprecatedString path, i32 request_id) =|
|
2022-11-21 16:07:47 +00:00
|
|
|
did_finish_handling_input_event(bool event_was_accepted) =|
|
2021-09-04 10:14:25 +00:00
|
|
|
|
|
|
|
did_output_js_console_message(i32 message_index) =|
|
2022-12-04 18:02:33 +00:00
|
|
|
did_get_js_console_messages(i32 start_index, Vector<DeprecatedString> message_types, Vector<DeprecatedString> messages) =|
|
2021-09-04 10:14:25 +00:00
|
|
|
|
2020-06-17 15:31:42 +00:00
|
|
|
}
|