summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/WindowObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/Bindings/WindowObject.h')
-rw-r--r--Libraries/LibWeb/Bindings/WindowObject.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Bindings/WindowObject.h b/Libraries/LibWeb/Bindings/WindowObject.h
index bddabf3334..a1a9a27c9d 100644
--- a/Libraries/LibWeb/Bindings/WindowObject.h
+++ b/Libraries/LibWeb/Bindings/WindowObject.h
@@ -26,6 +26,7 @@
#pragma once
+#include <AK/TypeCasts.h>
#include <AK/Weakable.h>
#include <LibJS/Runtime/GlobalObject.h>
#include <LibWeb/Forward.h>
@@ -58,6 +59,8 @@ private:
JS_DECLARE_NATIVE_GETTER(performance_getter);
+ JS_DECLARE_NATIVE_GETTER(event_getter);
+
JS_DECLARE_NATIVE_FUNCTION(alert);
JS_DECLARE_NATIVE_FUNCTION(confirm);
JS_DECLARE_NATIVE_FUNCTION(set_interval);
@@ -77,3 +80,7 @@ private:
}
}
+
+AK_BEGIN_TYPE_TRAITS(Web::Bindings::WindowObject)
+static bool is_type(const JS::GlobalObject& global) { return String(global.class_name()) == "WindowObject"; }
+AK_END_TYPE_TRAITS()