WebDriverEndpoints.h 749 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
  3. * Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <AK/Forward.h>
  9. #include <AK/Function.h>
  10. #include <LibGfx/Rect.h>
  11. #include <LibWeb/Forward.h>
  12. namespace Messages::WebContentServer {
  13. class WebdriverExecuteScriptResponse;
  14. }
  15. namespace Browser {
  16. class WebDriverEndpoints {
  17. public:
  18. WebDriverEndpoints() = default;
  19. ~WebDriverEndpoints() = default;
  20. Function<String()> on_serialize_source;
  21. Function<Messages::WebContentServer::WebdriverExecuteScriptResponse(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async)> on_execute_script;
  22. };
  23. }