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