mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
119
Libraries/LibWebView/Options.h
Normal file
119
Libraries/LibWebView/Options.h
Normal file
|
@ -0,0 +1,119 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/ByteString.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWebView/ProcessType.h>
|
||||
|
||||
namespace WebView {
|
||||
|
||||
enum class NewWindow {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class ForceNewProcess {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class AllowPopups {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class DisableScripting {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class DisableSQLDatabase {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class EnableAutoplay {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
struct ChromeOptions {
|
||||
Vector<URL::URL> urls;
|
||||
Vector<ByteString> raw_urls;
|
||||
URL::URL new_tab_page_url;
|
||||
Vector<ByteString> certificates {};
|
||||
NewWindow new_window { NewWindow::No };
|
||||
ForceNewProcess force_new_process { ForceNewProcess::No };
|
||||
AllowPopups allow_popups { AllowPopups::No };
|
||||
DisableScripting disable_scripting { DisableScripting::No };
|
||||
DisableSQLDatabase disable_sql_database { DisableSQLDatabase::No };
|
||||
Optional<ProcessType> debug_helper_process {};
|
||||
Optional<ProcessType> profile_helper_process {};
|
||||
Optional<ByteString> webdriver_content_ipc_path {};
|
||||
};
|
||||
|
||||
enum class IsLayoutTestMode {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class LogAllJSExceptions {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class EnableIDLTracing {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class EnableHTTPCache {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class ExposeInternalsObject {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class ForceCPUPainting {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class ForceFontconfig {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
enum class CollectGarbageOnEveryAllocation {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
struct WebContentOptions {
|
||||
String command_line;
|
||||
String executable_path;
|
||||
Optional<ByteString> config_path {};
|
||||
Optional<StringView> user_agent_preset {};
|
||||
IsLayoutTestMode is_layout_test_mode { IsLayoutTestMode::No };
|
||||
LogAllJSExceptions log_all_js_exceptions { LogAllJSExceptions::No };
|
||||
EnableIDLTracing enable_idl_tracing { EnableIDLTracing::No };
|
||||
EnableHTTPCache enable_http_cache { EnableHTTPCache::No };
|
||||
ExposeInternalsObject expose_internals_object { ExposeInternalsObject::No };
|
||||
ForceCPUPainting force_cpu_painting { ForceCPUPainting::No };
|
||||
ForceFontconfig force_fontconfig { ForceFontconfig::No };
|
||||
EnableAutoplay enable_autoplay { EnableAutoplay::No };
|
||||
CollectGarbageOnEveryAllocation collect_garbage_on_every_allocation { CollectGarbageOnEveryAllocation::No };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue