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