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