mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Move window.open TokenizedFeature parsing into its own file
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace Web::HTML::TokenizedFeature {
|
||||
|
||||
#define TOKENIZED_FEATURE(Feature) \
|
||||
@@ -24,4 +27,16 @@ TOKENIZED_FEATURE(Scrollbars);
|
||||
TOKENIZED_FEATURE(Status);
|
||||
TOKENIZED_FEATURE(Toolbar);
|
||||
|
||||
using Map = OrderedHashMap<String, String>;
|
||||
|
||||
}
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
TokenizedFeature::Map tokenize_open_features(StringView features);
|
||||
TokenizedFeature::Popup check_if_a_popup_window_is_requested(TokenizedFeature::Map const&);
|
||||
|
||||
template<Enum T>
|
||||
T parse_boolean_feature(StringView value);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user