With CompositorState in place, Browser and WebContent need an actual wire protocol to drive it: which calls are sync, who validates that a WebContent is allowed to touch a given context, how compositor loss propagates back to the renderer. This commit fills in the four endpoints around CompositorState and the matching WebContent-side helpers so the future remote host can forward CompositorHost calls directly. The service still has no clients, so default rendering is unchanged.
11 lines
388 B
Text
11 lines
388 B
Text
#include <LibWeb/Compositor/Types.h>
|
|
#include <LibWeb/Page/InputEvent.h>
|
|
|
|
endpoint CompositorWebContentClient
|
|
{
|
|
mouse_event(u64 page_id, Web::MouseEvent event) =|
|
|
request_rendering_update() =|
|
|
did_complete_screenshot(Web::Compositor::ScreenshotRequestId request_id) =|
|
|
did_fail_screenshot(Web::Compositor::ScreenshotRequestId request_id) =|
|
|
did_lose_compositor() =|
|
|
}
|