2023-08-01 23:39:19 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-01-16 20:55:40 +03:00
|
|
|
#include <AK/String.h>
|
|
|
|
|
2023-08-02 20:52:59 +03:00
|
|
|
namespace Ladybird {
|
|
|
|
|
2023-12-01 20:18:40 +03:00
|
|
|
enum class EnableCallgrindProfiling {
|
2023-08-01 23:39:19 +03:00
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
2023-08-02 20:52:59 +03:00
|
|
|
|
2023-12-01 20:18:40 +03:00
|
|
|
enum class EnableGPUPainting {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2024-06-15 00:18:04 +03:00
|
|
|
enum class EnableSkiaPainting {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2023-12-01 20:18:40 +03:00
|
|
|
enum class IsLayoutTestMode {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class UseLagomNetworking {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2023-12-20 19:52:17 +03:00
|
|
|
enum class WaitForDebugger {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2024-04-16 09:02:41 +03:00
|
|
|
enum class LogAllJSExceptions {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2024-04-16 15:39:57 +03:00
|
|
|
enum class EnableIDLTracing {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2024-06-22 19:53:11 +03:00
|
|
|
enum class EnableHTTPCache {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2024-04-20 23:46:38 +03:00
|
|
|
enum class ExposeInternalsObject {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2023-12-01 20:18:40 +03:00
|
|
|
struct WebContentOptions {
|
2024-01-16 20:55:40 +03:00
|
|
|
String command_line;
|
|
|
|
String executable_path;
|
2023-12-01 20:18:40 +03:00
|
|
|
EnableCallgrindProfiling enable_callgrind_profiling { EnableCallgrindProfiling::No };
|
|
|
|
EnableGPUPainting enable_gpu_painting { EnableGPUPainting::No };
|
2024-06-15 00:18:04 +03:00
|
|
|
EnableSkiaPainting enable_skia_painting { EnableSkiaPainting::No };
|
2023-12-01 20:18:40 +03:00
|
|
|
IsLayoutTestMode is_layout_test_mode { IsLayoutTestMode::No };
|
2024-04-25 14:18:31 +03:00
|
|
|
UseLagomNetworking use_lagom_networking { UseLagomNetworking::Yes };
|
2023-12-20 19:52:17 +03:00
|
|
|
WaitForDebugger wait_for_debugger { WaitForDebugger::No };
|
2024-04-16 09:02:41 +03:00
|
|
|
LogAllJSExceptions log_all_js_exceptions { LogAllJSExceptions::No };
|
2024-04-16 15:39:57 +03:00
|
|
|
EnableIDLTracing enable_idl_tracing { EnableIDLTracing::No };
|
2024-06-22 19:53:11 +03:00
|
|
|
EnableHTTPCache enable_http_cache { EnableHTTPCache::No };
|
2024-04-20 23:46:38 +03:00
|
|
|
ExposeInternalsObject expose_internals_object { ExposeInternalsObject::No };
|
2023-12-01 20:18:40 +03:00
|
|
|
};
|
|
|
|
|
2023-08-02 20:52:59 +03:00
|
|
|
}
|