summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-09-24 16:02:41 +0100
committerLinus Groh <mail@linusgroh.de>2022-09-24 19:31:39 +0100
commit4f73851afcc3338d58817643665ed13cc3e7d30e (patch)
treea9054a903a38d618519d1c43eeb9cf42cf944c43 /Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp
parentdc44effd443adb18162ab8ca86c12d651faf8d8e (diff)
downloadserenity-4f73851afcc3338d58817643665ed13cc3e7d30e.zip
LibWeb: Move CallbackType from Bindings/ to WebIDL/
Let's stop putting generic types and AOs from the Web IDL spec into the Bindings namespace and directory in LibWeb, and instead follow our usual naming rules of 'directory = namespace = spec name'. The IDL namespace is already used by LibIDL, so Web::WebIDL seems like a good choice.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp')
-rw-r--r--Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp
index c1b6d069b0..93d4e39827 100644
--- a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp
+++ b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp
@@ -85,14 +85,14 @@ JS::NonnullGCPtr<WorkerNavigator> WorkerGlobalScope::navigator() const
}
#undef __ENUMERATE
-#define __ENUMERATE(attribute_name, event_name) \
- void WorkerGlobalScope::set_##attribute_name(Bindings::CallbackType* value) \
- { \
- set_event_handler_attribute(event_name, move(value)); \
- } \
- Bindings::CallbackType* WorkerGlobalScope::attribute_name() \
- { \
- return event_handler_attribute(event_name); \
+#define __ENUMERATE(attribute_name, event_name) \
+ void WorkerGlobalScope::set_##attribute_name(WebIDL::CallbackType* value) \
+ { \
+ set_event_handler_attribute(event_name, move(value)); \
+ } \
+ WebIDL::CallbackType* WorkerGlobalScope::attribute_name() \
+ { \
+ return event_handler_attribute(event_name); \
}
ENUMERATE_WORKER_GLOBAL_SCOPE_EVENT_HANDLERS(__ENUMERATE)
#undef __ENUMERATE