mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
LibWeb: Improve Enum generation in IDLGenerator
Generated enums have no underlying type specifier, this adds one It uses the smallest available, which is mostly u8
This commit is contained in:
parent
c276cc43f0
commit
4c54fa10ed
Notes:
github-actions[bot]
2025-03-04 16:36:05 +00:00
Author: https://github.com/Totto16
Commit: 4c54fa10ed
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3799
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 45 additions and 29 deletions
|
@ -6,10 +6,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
|
||||
namespace Web::Bindings {
|
||||
|
||||
// https://w3c.github.io/encrypted-media/#dom-mediakeysrequirement
|
||||
enum class MediaKeysRequirement {
|
||||
enum class MediaKeysRequirement : u8 {
|
||||
Required,
|
||||
Optional,
|
||||
NotAllowed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue