mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +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
38
Libraries/LibWeb/HTML/SandboxingFlagSet.h
Normal file
38
Libraries/LibWeb/HTML/SandboxingFlagSet.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/EnumBits.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/origin.html#sandboxing-flag-set
|
||||
enum class SandboxingFlagSet {
|
||||
SandboxedNavigation = 1u << 0u,
|
||||
SandboxedAuxiliaryNavigation = 1u << 1u,
|
||||
SandboxedTopLevelNavigationWithoutUserActivation = 1u << 2u,
|
||||
SandboxedTopLevelNavigationWithUserActivation = 1u << 3u,
|
||||
SandboxedPlugins = 1u << 4u,
|
||||
SandboxedOrigin = 1u << 5u,
|
||||
SandboxedForms = 1u << 6u,
|
||||
SandboxedPointerLock = 1u << 7u,
|
||||
SandboxedScripts = 1u << 8u,
|
||||
SandboxedAutomaticFeatures = 1u << 9u,
|
||||
SandboxedDocumentDomain = 1u << 10u,
|
||||
SandboxPropagatesToAuxiliaryBrowsingContexts = 1u << 11u,
|
||||
SandboxedModals = 1u << 12u,
|
||||
SandboxedOrientationLock = 1u << 13u,
|
||||
SandboxedPresentation = 1u << 14u,
|
||||
SandboxedDownloads = 1u << 15u,
|
||||
SandboxedCustomProtocols = 1u << 16u,
|
||||
};
|
||||
|
||||
AK_ENUM_BITWISE_OPERATORS(SandboxingFlagSet);
|
||||
inline bool is_empty(SandboxingFlagSet s) { return (to_underlying(s) & 0x1FFU) == 0; }
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue