WebContentServer.ipc 3.0 KB

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