WebContentServer.ipc 2.1 KB

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