LibWebView+Services+UI: Move process helpers to LibWebView

This commit is contained in:
Timothy Flynn
2024-11-10 10:26:07 -05:00
committed by Tim Flynn
parent a14937c45e
commit 0ff91a5273
29 changed files with 110 additions and 119 deletions

View File

@@ -1,5 +1,4 @@
set(SOURCES
${LADYBIRD_SOURCE_DIR}/UI/Utilities.cpp
Client.cpp
Session.cpp
WebContentConnection.cpp

View File

@@ -14,14 +14,14 @@
#include <LibCore/TCPServer.h>
#include <LibMain/Main.h>
#include <LibWeb/WebDriver/Capabilities.h>
#include <UI/Utilities.h>
#include <LibWebView/Utilities.h>
#include <WebDriver/Client.h>
static Vector<ByteString> certificates;
static ErrorOr<pid_t> launch_process(StringView application, ReadonlySpan<ByteString> arguments)
{
auto paths = TRY(get_paths_for_helper_process(application));
auto paths = TRY(WebView::get_paths_for_helper_process(application));
ErrorOr<pid_t> result = -1;
for (auto const& path : paths) {
@@ -96,7 +96,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return 1;
}
platform_init();
WebView::platform_init();
Web::WebDriver::set_default_interface_mode(headless ? Web::WebDriver::InterfaceMode::Headless : Web::WebDriver::InterfaceMode::Graphical);