WebContentServer.ipc 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. get_window_handle() => (String handle)
  12. set_window_handle(String handle) =|
  13. connect_to_webdriver(DeprecatedString webdriver_ipc_path) =|
  14. update_system_theme(Core::AnonymousBuffer theme_buffer) =|
  15. update_system_fonts(DeprecatedString default_font_query, DeprecatedString fixed_width_font_query, DeprecatedString window_title_font_query) =|
  16. update_screen_rects(Vector<Gfx::IntRect> rects, u32 main_screen_index) =|
  17. load_url(URL url) =|
  18. load_html(DeprecatedString html, URL url) =|
  19. add_backing_store(i32 backing_store_id, Gfx::ShareableBitmap bitmap) =|
  20. remove_backing_store(i32 backing_store_id) =|
  21. paint(Gfx::IntRect content_rect, i32 backing_store_id) =|
  22. set_viewport_rect(Gfx::IntRect rect) =|
  23. mouse_down(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
  24. mouse_move(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
  25. mouse_up(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
  26. mouse_wheel(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers, i32 wheel_delta_x, i32 wheel_delta_y) =|
  27. doubleclick(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =|
  28. key_down(i32 key, unsigned modifiers, u32 code_point) =|
  29. key_up(i32 key, unsigned modifiers, u32 code_point) =|
  30. debug_request(DeprecatedString request, DeprecatedString argument) =|
  31. get_source() =|
  32. inspect_dom_tree() =|
  33. inspect_dom_node(i32 node_id, Optional<Web::CSS::Selector::PseudoElement> pseudo_element) => (bool has_style, DeprecatedString computed_style, DeprecatedString resolved_style, DeprecatedString custom_properties, DeprecatedString node_box_sizing, DeprecatedString aria_properties_state)
  34. inspect_accessibility_tree() =|
  35. get_hovered_node_id() => (i32 node_id)
  36. js_console_input(DeprecatedString js_source) =|
  37. js_console_request_messages(i32 start_index) =|
  38. take_document_screenshot() => (Gfx::ShareableBitmap data)
  39. run_javascript(DeprecatedString js_source) =|
  40. dump_layout_tree() => (DeprecatedString dump)
  41. dump_paint_tree() => (DeprecatedString dump)
  42. dump_text() => (DeprecatedString dump)
  43. get_selected_text() => (DeprecatedString selection)
  44. select_all() =|
  45. set_content_filters(Vector<String> filters) =|
  46. set_autoplay_allowed_on_all_websites() =|
  47. set_autoplay_allowlist(Vector<String> allowlist) =|
  48. set_proxy_mappings(Vector<DeprecatedString> proxies, HashMap<DeprecatedString,size_t> mappings) =|
  49. set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) =|
  50. set_has_focus(bool has_focus) =|
  51. set_is_scripting_enabled(bool is_scripting_enabled) =|
  52. set_device_pixels_per_css_pixel(float device_pixels_per_css_pixel) =|
  53. set_window_position(Gfx::IntPoint position) =|
  54. set_window_size(Gfx::IntSize size) =|
  55. get_local_storage_entries() => (OrderedHashMap<DeprecatedString,DeprecatedString> entries)
  56. get_session_storage_entries() => (OrderedHashMap<DeprecatedString,DeprecatedString> entries)
  57. handle_file_return(i32 error, Optional<IPC::File> file, i32 request_id) =|
  58. set_system_visibility_state(bool visible) =|
  59. alert_closed() =|
  60. confirm_closed(bool accepted) =|
  61. prompt_closed(Optional<String> response) =|
  62. toggle_media_play_state() =|
  63. toggle_media_mute_state() =|
  64. toggle_media_loop_state() =|
  65. toggle_media_controls_state() =|
  66. set_user_style(String source) =|
  67. }