WebContentServer.ipc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. get_document_element() => (Optional<i32> node_id)
  33. query_selector_all(i32 start_node_id, String selector) => (Optional<Vector<i32>> elements_ids)
  34. get_element_attribute(i32 element_id, String name) => (Optional<String> attribute)
  35. get_element_property(i32 element_id, String name) => (Optional<String> property)
  36. run_javascript(String js_source) =|
  37. dump_layout_tree() => (String dump)
  38. get_selected_text() => (String selection)
  39. select_all() =|
  40. set_content_filters(Vector<String> filters) =|
  41. set_proxy_mappings(Vector<String> proxies, HashMap<String,size_t> mappings) =|
  42. set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) =|
  43. set_has_focus(bool has_focus) =|
  44. set_is_scripting_enabled(bool is_scripting_enabled) =|
  45. set_is_webdriver_active(bool is_webdriver_active) =|
  46. get_local_storage_entries() => (OrderedHashMap<String,String> entries)
  47. get_session_storage_entries() => (OrderedHashMap<String,String> entries)
  48. handle_file_return(i32 error, Optional<IPC::File> file, i32 request_id) =|
  49. set_system_visibility_state(bool visible) =|
  50. }