2021-07-03 07:40:44 +03:00
|
|
|
#include <AK/URL.h>
|
|
|
|
#include <LibCore/AnonymousBuffer.h>
|
|
|
|
#include <LibGfx/ShareableBitmap.h>
|
2021-10-26 19:00:10 +03:00
|
|
|
#include <LibWeb/CSS/PreferredColorScheme.h>
|
2022-03-04 19:29:05 +03:00
|
|
|
#include <LibWeb/CSS/Selector.h>
|
2021-07-03 07:40:44 +03:00
|
|
|
|
2021-04-25 14:19:53 +03:00
|
|
|
endpoint WebContentServer
|
2020-06-17 18:31:42 +03:00
|
|
|
{
|
2021-05-03 16:52:56 +03:00
|
|
|
update_system_theme(Core::AnonymousBuffer theme_buffer) =|
|
2021-05-21 19:10:23 +03:00
|
|
|
update_system_fonts(String default_font_query, String fixed_width_font_query) =|
|
2021-06-13 15:16:06 +03:00
|
|
|
update_screen_rects(Vector<Gfx::IntRect> rects, u32 main_screen_index) =|
|
2020-06-17 18:31:42 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
load_url(URL url) =|
|
|
|
|
load_html(String html, URL url) =|
|
2020-06-17 18:31:42 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
add_backing_store(i32 backing_store_id, Gfx::ShareableBitmap bitmap) =|
|
|
|
|
remove_backing_store(i32 backing_store_id) =|
|
2021-01-17 01:15:32 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
paint(Gfx::IntRect content_rect, i32 backing_store_id) =|
|
|
|
|
set_viewport_rect(Gfx::IntRect rect) =|
|
2020-06-17 18:31:42 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
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) =|
|
2021-12-14 01:22:28 +03:00
|
|
|
mouse_wheel(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers, i32 wheel_delta_x, i32 wheel_delta_y) =|
|
2020-08-03 20:58:59 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
key_down(i32 key, unsigned modifiers, u32 code_point) =|
|
2021-09-28 16:39:35 +03:00
|
|
|
key_up(i32 key, unsigned modifiers, u32 code_point) =|
|
2021-01-31 11:06:25 +03:00
|
|
|
|
2021-05-03 16:52:56 +03:00
|
|
|
debug_request(String request, String argument) =|
|
|
|
|
get_source() =|
|
2021-06-07 18:35:10 +03:00
|
|
|
inspect_dom_tree() =|
|
2022-03-04 19:29:05 +03:00
|
|
|
inspect_dom_node(i32 node_id, Optional<Web::CSS::Selector::PseudoElement> pseudo_element) => (bool has_style, String specified_style, String computed_style, String custom_properties, String node_box_sizing)
|
2021-08-27 19:33:10 +03:00
|
|
|
get_hovered_node_id() => (i32 node_id)
|
2021-05-03 16:52:56 +03:00
|
|
|
js_console_input(String js_source) =|
|
2021-09-04 13:14:25 +03:00
|
|
|
js_console_request_messages(i32 start_index) =|
|
2021-07-14 15:32:55 +03:00
|
|
|
|
2021-08-24 17:56:42 +03:00
|
|
|
run_javascript(String js_source) =|
|
|
|
|
|
2021-09-08 01:55:35 +03:00
|
|
|
dump_layout_tree() => (String dump)
|
|
|
|
|
2021-07-14 15:32:55 +03:00
|
|
|
get_selected_text() => (String selection)
|
2021-07-14 15:53:55 +03:00
|
|
|
select_all() =|
|
2021-09-27 12:39:17 +03:00
|
|
|
|
|
|
|
set_content_filters(Vector<String> filters) =|
|
2022-04-08 00:16:47 +03:00
|
|
|
set_proxy_mappings(Vector<String> proxies, HashMap<String,size_t> mappings) =|
|
2021-10-26 19:00:10 +03:00
|
|
|
set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) =|
|
2022-02-06 21:03:13 +03:00
|
|
|
set_has_focus(bool has_focus) =|
|
2022-03-31 01:23:14 +03:00
|
|
|
set_is_scripting_enabled(bool is_scripting_enabled) =|
|
2022-02-06 21:03:13 +03:00
|
|
|
|
2022-04-02 00:14:04 +03:00
|
|
|
get_local_storage_entries() => (OrderedHashMap<String,String> entries)
|
|
|
|
|
2020-06-17 18:31:42 +03:00
|
|
|
}
|