mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 00:27:47 +00:00
LibIDL+LibWeb: Move parse_exposure_set from code generator to LibIDL
This commit is contained in:
parent
dbba6c0df9
commit
da620d6ccf
Notes:
github-actions[bot]
2025-06-30 17:40:52 +00:00
Author: https://github.com/bplaat
Commit: da620d6ccf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4535
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/trflynn89
4 changed files with 114 additions and 83 deletions
29
Libraries/LibIDL/ExposedTo.h
Normal file
29
Libraries/LibIDL/ExposedTo.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Andrew Kaster <akaster@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibIDL/Types.h>
|
||||
|
||||
namespace IDL {
|
||||
|
||||
enum ExposedTo {
|
||||
Nobody = 0x0,
|
||||
DedicatedWorker = 0x1,
|
||||
SharedWorker = 0x2,
|
||||
ServiceWorker = 0x4,
|
||||
AudioWorklet = 0x8,
|
||||
Window = 0x10,
|
||||
ShadowRealm = 0x20,
|
||||
Worklet = 0x40,
|
||||
AllWorkers = DedicatedWorker | SharedWorker | ServiceWorker | AudioWorklet, // FIXME: Is "AudioWorklet" a Worker? We'll assume it is for now (here, and line below)
|
||||
All = AllWorkers | Window | ShadowRealm | Worklet,
|
||||
};
|
||||
AK_ENUM_BITWISE_OPERATORS(ExposedTo);
|
||||
|
||||
ErrorOr<ExposedTo> parse_exposure_set(StringView interface_name, StringView exposed);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue