WebContentServer.ipc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #include <AK/URL.h>
  2. #include <LibIPC/File.h>
  3. #include <LibCore/AnonymousBuffer.h>
  4. #include <LibGfx/ShareableBitmap.h>
  5. #include <LibWeb/CSS/PreferredColorScheme.h>
  6. #include <LibWeb/CSS/Selector.h>
  7. endpoint WebContentServer
  8. {
  9. update_system_theme(Core::AnonymousBuffer theme_buffer) =|
  10. update_system_fonts(String default_font_query, String fixed_width_font_query, String window_title_font_query) =|
  11. update_screen_rects(Vector<Gfx::IntRect> rects, u32 main_screen_index) =|
  12. load_url(URL url) =|
  13. load_html(String html, URL url) =|
  14. add_backing_store(i32 backing_store_id, Gfx::ShareableBitmap bitmap) =|
  15. remove_backing_store(i32 backing_store_id) =|
  16. paint(Gfx::IntRect content_rect, i32 backing_store_id) =|
  17. set_viewport_rect(Gfx::IntRect rect) =|
  18. mouse_down(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
  19. mouse_move(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
  20. mouse_up(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
  21. mouse_wheel(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers, i32 wheel_delta_x, i32 wheel_delta_y) =|
  22. doubleclick(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
  23. key_down(i32 key, unsigned modifiers, u32 code_point) =|
  24. key_up(i32 key, unsigned modifiers, u32 code_point) =|
  25. debug_request(String request, String argument) =|
  26. get_source() =|
  27. inspect_dom_tree() =|
  28. 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)
  29. get_hovered_node_id() => (i32 node_id)
  30. js_console_input(String js_source) =|
  31. js_console_request_messages(i32 start_index) =|
  32. run_javascript(String js_source) =|
  33. dump_layout_tree() => (String dump)
  34. get_selected_text() => (String selection)
  35. select_all() =|
  36. set_content_filters(Vector<String> filters) =|
  37. set_proxy_mappings(Vector<String> proxies, HashMap<String,size_t> mappings) =|
  38. set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) =|
  39. set_has_focus(bool has_focus) =|
  40. set_is_scripting_enabled(bool is_scripting_enabled) =|
  41. get_local_storage_entries() => (OrderedHashMap<String,String> entries)
  42. get_session_storage_entries() => (OrderedHashMap<String,String> entries)
  43. handle_file_return(i32 error, Optional<IPC::File> file, i32 request_id) =|
  44. }