diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/ARIARoleNames.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/ARIARoleNames.h | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/ARIARoleNames.h b/Userland/Libraries/LibWeb/DOM/ARIARoleNames.h new file mode 100644 index 0000000000..36d310643e --- /dev/null +++ b/Userland/Libraries/LibWeb/DOM/ARIARoleNames.h @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2022, Jonah Shafran <jonahshafran@gmail.com> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <AK/FlyString.h> + +namespace Web::DOM::ARIARoleNames { + +#define ENUMERATE_ARIA_ROLES \ + __ENUMERATE_ARIA_ROLE(alert) \ + __ENUMERATE_ARIA_ROLE(alertdialog) \ + __ENUMERATE_ARIA_ROLE(application) \ + __ENUMERATE_ARIA_ROLE(article) \ + __ENUMERATE_ARIA_ROLE(banner) \ + __ENUMERATE_ARIA_ROLE(blockquote) \ + __ENUMERATE_ARIA_ROLE(button) \ + __ENUMERATE_ARIA_ROLE(caption) \ + __ENUMERATE_ARIA_ROLE(cell) \ + __ENUMERATE_ARIA_ROLE(checkbox) \ + __ENUMERATE_ARIA_ROLE(code) \ + __ENUMERATE_ARIA_ROLE(columnheader) \ + __ENUMERATE_ARIA_ROLE(combobox) \ + __ENUMERATE_ARIA_ROLE(command) \ + __ENUMERATE_ARIA_ROLE(complementary) \ + __ENUMERATE_ARIA_ROLE(composite) \ + __ENUMERATE_ARIA_ROLE(contentinfo) \ + __ENUMERATE_ARIA_ROLE(definition) \ + __ENUMERATE_ARIA_ROLE(deletion) \ + __ENUMERATE_ARIA_ROLE(dialog) \ + __ENUMERATE_ARIA_ROLE(directory) \ + __ENUMERATE_ARIA_ROLE(document) \ + __ENUMERATE_ARIA_ROLE(emphasis) \ + __ENUMERATE_ARIA_ROLE(feed) \ + __ENUMERATE_ARIA_ROLE(figure) \ + __ENUMERATE_ARIA_ROLE(form) \ + __ENUMERATE_ARIA_ROLE(generic) \ + __ENUMERATE_ARIA_ROLE(grid) \ + __ENUMERATE_ARIA_ROLE(gridcell) \ + __ENUMERATE_ARIA_ROLE(group) \ + __ENUMERATE_ARIA_ROLE(heading) \ + __ENUMERATE_ARIA_ROLE(img) \ + __ENUMERATE_ARIA_ROLE(input) \ + __ENUMERATE_ARIA_ROLE(insertion) \ + __ENUMERATE_ARIA_ROLE(landmark) \ + __ENUMERATE_ARIA_ROLE(link) \ + __ENUMERATE_ARIA_ROLE(list) \ + __ENUMERATE_ARIA_ROLE(listbox) \ + __ENUMERATE_ARIA_ROLE(listitem) \ + __ENUMERATE_ARIA_ROLE(log) \ + __ENUMERATE_ARIA_ROLE(main) \ + __ENUMERATE_ARIA_ROLE(marquee) \ + __ENUMERATE_ARIA_ROLE(math) \ + __ENUMERATE_ARIA_ROLE(meter) \ + __ENUMERATE_ARIA_ROLE(menu) \ + __ENUMERATE_ARIA_ROLE(menubar) \ + __ENUMERATE_ARIA_ROLE(menuitem) \ + __ENUMERATE_ARIA_ROLE(menuitemcheckbox) \ + __ENUMERATE_ARIA_ROLE(menuitemradio) \ + __ENUMERATE_ARIA_ROLE(navigation) \ + __ENUMERATE_ARIA_ROLE(none) \ + __ENUMERATE_ARIA_ROLE(note) \ + __ENUMERATE_ARIA_ROLE(option) \ + __ENUMERATE_ARIA_ROLE(paragraph) \ + __ENUMERATE_ARIA_ROLE(presentation) \ + __ENUMERATE_ARIA_ROLE(progressbar) \ + __ENUMERATE_ARIA_ROLE(radio) \ + __ENUMERATE_ARIA_ROLE(radiogroup) \ + __ENUMERATE_ARIA_ROLE(range) \ + __ENUMERATE_ARIA_ROLE(region) \ + __ENUMERATE_ARIA_ROLE(roletype) \ + __ENUMERATE_ARIA_ROLE(row) \ + __ENUMERATE_ARIA_ROLE(rowgroup) \ + __ENUMERATE_ARIA_ROLE(rowheader) \ + __ENUMERATE_ARIA_ROLE(scrollbar) \ + __ENUMERATE_ARIA_ROLE(search) \ + __ENUMERATE_ARIA_ROLE(searchbox) \ + __ENUMERATE_ARIA_ROLE(section) \ + __ENUMERATE_ARIA_ROLE(sectionhead) \ + __ENUMERATE_ARIA_ROLE(select) \ + __ENUMERATE_ARIA_ROLE(separator) \ + __ENUMERATE_ARIA_ROLE(slider) \ + __ENUMERATE_ARIA_ROLE(spinbutton) \ + __ENUMERATE_ARIA_ROLE(status) \ + __ENUMERATE_ARIA_ROLE(strong) \ + __ENUMERATE_ARIA_ROLE(structure) \ + __ENUMERATE_ARIA_ROLE(subscript) \ + __ENUMERATE_ARIA_ROLE(superscript) \ + __ENUMERATE_ARIA_ROLE(switch_) \ + __ENUMERATE_ARIA_ROLE(tab) \ + __ENUMERATE_ARIA_ROLE(table) \ + __ENUMERATE_ARIA_ROLE(tablist) \ + __ENUMERATE_ARIA_ROLE(tabpanel) \ + __ENUMERATE_ARIA_ROLE(term) \ + __ENUMERATE_ARIA_ROLE(textbox) \ + __ENUMERATE_ARIA_ROLE(time) \ + __ENUMERATE_ARIA_ROLE(timer) \ + __ENUMERATE_ARIA_ROLE(toolbar) \ + __ENUMERATE_ARIA_ROLE(tooltip) \ + __ENUMERATE_ARIA_ROLE(tree) \ + __ENUMERATE_ARIA_ROLE(treegrid) \ + __ENUMERATE_ARIA_ROLE(treeitem) \ + __ENUMERATE_ARIA_ROLE(widget) \ + __ENUMERATE_ARIA_ROLE(window) + +#define __ENUMERATE_ARIA_ROLE(name) extern FlyString name; +ENUMERATE_ARIA_ROLES +#undef __ENUMERATE_ARIA_ROLE + +bool is_abstract_aria_role(FlyString const&); +bool is_widget_aria_role(FlyString const&); +bool is_document_structure_aria_role(FlyString const&); +bool is_landmark_aria_role(FlyString const&); +bool is_live_region_aria_role(FlyString const&); +bool is_windows_aria_role(FlyString const&); + +bool is_non_abstract_aria_role(FlyString const&); + +} |