browsingContextProcessor.d.ts 2.6 KB

12345678910111213141516171819202122232425262728
  1. import { type BrowsingContext, type Cdp, Input, Message, type Script } from '../../../protocol/protocol.js';
  2. import { type LoggerFn } from '../../../utils/log.js';
  3. import type { IEventManager } from '../events/EventManager.js';
  4. import type { RealmStorage } from '../script/realmStorage.js';
  5. import type { ICdpConnection } from '../../../cdp/cdpConnection.js';
  6. import type { BrowsingContextStorage } from './browsingContextStorage.js';
  7. export declare class BrowsingContextProcessor {
  8. #private;
  9. constructor(cdpConnection: ICdpConnection, selfTargetId: string, eventManager: IEventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, logger?: LoggerFn);
  10. process_browsingContext_getTree(params: BrowsingContext.GetTreeParameters): BrowsingContext.GetTreeResult;
  11. process_browsingContext_create(params: BrowsingContext.CreateParameters): Promise<BrowsingContext.CreateResult>;
  12. process_browsingContext_navigate(params: BrowsingContext.NavigateParameters): Promise<BrowsingContext.NavigateResult>;
  13. process_browsingContext_reload(params: BrowsingContext.ReloadParameters): Promise<Message.EmptyResult>;
  14. process_browsingContext_captureScreenshot(params: BrowsingContext.CaptureScreenshotParameters): Promise<BrowsingContext.CaptureScreenshotResult>;
  15. process_browsingContext_print(params: BrowsingContext.PrintParameters): Promise<BrowsingContext.PrintResult>;
  16. process_script_addPreloadScript(params: Script.AddPreloadScriptParameters): Promise<Script.AddPreloadScriptResult>;
  17. process_script_removePreloadScript(params: Script.RemovePreloadScriptParameters): Promise<Message.EmptyResult>;
  18. process_script_evaluate(params: Script.EvaluateParameters): Promise<Script.EvaluateResult>;
  19. process_script_getRealms(params: Script.GetRealmsParameters): Script.GetRealmsResult;
  20. process_script_callFunction(params: Script.CallFunctionParameters): Promise<Script.CallFunctionResult>;
  21. process_script_disown(params: Script.DisownParameters): Promise<Script.DisownResult>;
  22. process_input_performActions(params: Input.PerformActionsParameters): Promise<Message.EmptyResult>;
  23. process_input_releaseActions(params: Input.ReleaseActionsParameters): Promise<Message.EmptyResult>;
  24. process_browsingContext_setViewport(params: BrowsingContext.SetViewportParameters): Promise<Message.EmptyResult>;
  25. process_browsingContext_close(commandParams: BrowsingContext.CloseParameters): Promise<Message.EmptyResult>;
  26. process_cdp_sendCommand(params: Cdp.SendCommandParams): Promise<Cdp.SendCommandResult>;
  27. process_cdp_getSession(params: Cdp.GetSessionParams): Cdp.GetSessionResult;
  28. }