2021-07-03 07:40:44 +03:00
|
|
|
#include <AK/URL.h>
|
|
|
|
#include <LibCore/AnonymousBuffer.h>
|
|
|
|
#include <LibGfx/ShareableBitmap.h>
|
2022-04-30 12:21:21 +03:00
|
|
|
#include <LibWeb/Cookie/ParsedCookie.h>
|
2021-07-03 07:40:44 +03:00
|
|
|
|
2022-11-08 20:58:24 +03:00
|
|
|
// FIXME: This isn't used here, but the generated IPC fails to compile without this include.
|
|
|
|
#include <LibWeb/WebDriver/Response.h>
|
|
|
|
|
2021-04-25 14:19:53 +03:00
|
|
|
endpoint WebContentClient
|
2020-06-17 18:31:42 +03:00
|
|
|
{
|
2021-05-03 16:52:56 +03:00
|
|
|
did_start_loading(URL url) =|
|
|
|
|
did_finish_loading(URL url) =|
|
|
|
|
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) =|
|
|
|
|
did_change_title(String 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) =|
|
|
|
|
did_enter_tooltip_area(Gfx::IntPoint content_position, String title) =|
|
|
|
|
did_leave_tooltip_area() =|
|
|
|
|
did_hover_link(URL url) =|
|
|
|
|
did_unhover_link() =|
|
|
|
|
did_click_link(URL url, String target, unsigned modifiers) =|
|
|
|
|
did_middle_click_link(URL url, String target, unsigned modifiers) =|
|
|
|
|
did_request_context_menu(Gfx::IntPoint content_position) =|
|
|
|
|
did_request_link_context_menu(Gfx::IntPoint content_position, URL url, String target, unsigned modifiers) =|
|
|
|
|
did_request_image_context_menu(Gfx::IntPoint content_position, URL url, String target, unsigned modifiers, Gfx::ShareableBitmap bitmap) =|
|
|
|
|
did_request_alert(String message) => ()
|
|
|
|
did_request_confirm(String message) => (bool result)
|
|
|
|
did_request_prompt(String message, String default_) => (String response)
|
|
|
|
did_get_source(URL url, String source) =|
|
2021-06-07 18:35:10 +03:00
|
|
|
did_get_dom_tree(String dom_tree) =|
|
2022-02-27 03:38:12 +03:00
|
|
|
did_get_dom_node_properties(i32 node_id, String specified_style, String computed_style, String custom_properties, String node_box_sizing_json) =|
|
2021-05-03 16:52:56 +03:00
|
|
|
did_change_favicon(Gfx::ShareableBitmap favicon) =|
|
|
|
|
did_request_cookie(URL url, u8 source) => (String cookie)
|
|
|
|
did_set_cookie(URL url, Web::Cookie::ParsedCookie cookie, u8 source) =|
|
2022-02-21 01:03:39 +03:00
|
|
|
did_update_resource_count(i32 count_waiting) =|
|
2022-02-26 19:50:31 +03:00
|
|
|
did_request_file(String path, i32 request_id) =|
|
2021-09-04 13:14:25 +03:00
|
|
|
|
|
|
|
did_output_js_console_message(i32 message_index) =|
|
|
|
|
did_get_js_console_messages(i32 start_index, Vector<String> message_types, Vector<String> messages) =|
|
|
|
|
|
2020-06-17 18:31:42 +03:00
|
|
|
}
|