diff --git a/glass-easel/src/backend/suggested_backend_protocol.ts b/glass-easel/src/backend/suggested_backend_protocol.ts index 690d5c8..32ba510 100644 --- a/glass-easel/src/backend/suggested_backend_protocol.ts +++ b/glass-easel/src/backend/suggested_backend_protocol.ts @@ -1,4 +1,5 @@ import { type Element as GlassEaselElement } from '../element' +import { type EventBubbleStatus, type EventOptions } from '../event' import { type BoundingClientRect, type GetAllComputedStylesResponses, @@ -50,6 +51,23 @@ export interface Context { cb: (ContextWrapper: GetWrapper & Ctx>>) => void, ): void + addPriorEventListener( + listener: ( + target: GlassEaselElement, + type: string, + detail: unknown, + options: EventOptions, + ) => EventBubbleStatus | void, + ): void + removePriorEventListener( + listener: ( + target: GlassEaselElement, + type: string, + detail: unknown, + options: EventOptions, + ) => EventBubbleStatus | void, + ): void + setFocusedNode(target: Elem): void getFocusedNode(cb: (node: Elem | null) => void): void