Skip to content

Truly independent web browser

1.6 KB
Raw Blame
#include <LibCompositing/DisplayList/DisplayListResourceIds.h>
#include <LibCompositing/Types.h>
#include <LibGfx/Size.h>
#include <LibWebCommon/Page/InputEvent.h>

endpoint CompositorWebContentClient
{
    [RustSender] mouse_event(u64 page_id, Web::MouseEvent event) =|
    [RustSender] key_event(u64 page_id, Web::KeyEvent event) =|
    [RustSender] pinch_event(u64 page_id, Web::PinchEvent event) =|
    [RustSender] request_rendering_update() =|
    [RustSender] rendering_opportunity(Web::CompositorContextId context_id, i64 frame_time_nanoseconds, double frame_interval_milliseconds) =|
    [RustSender] async_scroll_updates(Web::CompositorContextId context_id, Compositing::PendingAsyncScrollUpdates updates) =|
    // A frame of a transform animation the compositor runs moved content under the pointer at rest, or away from it,
    // as of the frame's time.
    [RustSender] animated_content_moved_under_pointer(Web::CompositorContextId context_id, i64 frame_time_nanoseconds) =|
    [RustSender] overlay_scrollbar_visibilities_changed(Vector<Web::OverlayScrollbarVisibility> visibilities) =|
    did_complete_screenshot(Compositing::ScreenshotRequestId request_id) =|
    video_sink_is_up_to_date(u64 token) =|
    did_fail_screenshot(Compositing::ScreenshotRequestId request_id) =|
    paint_contexts_for_screenshot(u64 preparation_id, Vector<Web::CompositorContextId> context_ids) =|
    remote_descendants_prepared_for_screenshot(u64 request_id) =|
    did_lose_compositor() =|
    placeholder_canvas_committed(Compositing::CanvasId canvas_id, Gfx::IntSize size, bool origin_clean) =|
}