mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00

This patch introduces three new IPC calls for WebContent: - `Client::did_output_js_console_message(index)`: Notifies the client that a new console message was logged. - `Server::js_console_request_messages(start_index)`: Ask the server for console messages starting at the given index. - `Client::did_get_js_console_messages(start_index, types, messages)`: Send the client the messages they requested. This mechanism will replace the current `Client::did_js_console_output()` call in the next few commits. This will allow us to display messages in the console that happened before the console was opened.
40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
#include <AK/URL.h>
|
|
#include <LibCore/AnonymousBuffer.h>
|
|
#include <LibGfx/ShareableBitmap.h>
|
|
|
|
endpoint WebContentServer
|
|
{
|
|
update_system_theme(Core::AnonymousBuffer theme_buffer) =|
|
|
update_system_fonts(String default_font_query, String fixed_width_font_query) =|
|
|
update_screen_rects(Vector<Gfx::IntRect> rects, u32 main_screen_index) =|
|
|
|
|
load_url(URL url) =|
|
|
load_html(String html, URL url) =|
|
|
|
|
add_backing_store(i32 backing_store_id, Gfx::ShareableBitmap bitmap) =|
|
|
remove_backing_store(i32 backing_store_id) =|
|
|
|
|
paint(Gfx::IntRect content_rect, i32 backing_store_id) =|
|
|
set_viewport_rect(Gfx::IntRect rect) =|
|
|
|
|
mouse_down(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
|
|
mouse_move(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
|
|
mouse_up(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
|
|
mouse_wheel(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers, i32 wheel_delta) =|
|
|
|
|
key_down(i32 key, unsigned modifiers, u32 code_point) =|
|
|
|
|
debug_request(String request, String argument) =|
|
|
get_source() =|
|
|
inspect_dom_tree() =|
|
|
inspect_dom_node(i32 node_id) => (bool has_style, String specified_style, String computed_style)
|
|
get_hovered_node_id() => (i32 node_id)
|
|
js_console_initialize() =|
|
|
js_console_input(String js_source) =|
|
|
js_console_request_messages(i32 start_index) =|
|
|
|
|
run_javascript(String js_source) =|
|
|
|
|
get_selected_text() => (String selection)
|
|
select_all() =|
|
|
}
|