summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/MouseEventWrapper.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-20 13:55:34 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-20 15:45:07 +0200
commite4add199153bd32a7a4ccbe32751c799aaacaea9 (patch)
tree5d326c1635f94eadf6d53861be17186a21865085 /Libraries/LibWeb/Bindings/MouseEventWrapper.h
parent4aa98052caa728da0de4c3960d312d8cf92f1be7 (diff)
downloadserenity-e4add199153bd32a7a4ccbe32751c799aaacaea9.zip
LibJS: Pass GlobalObject& to native functions and property accessors
More work towards supporting multiple global objects. Native C++ code now get a GlobalObject& and don't have to ask the Interpreter for it. I've added macros for declaring and defining native callbacks since this was pretty tedious and this makes it easier next time we want to change any of these signatures.
Diffstat (limited to 'Libraries/LibWeb/Bindings/MouseEventWrapper.h')
-rw-r--r--Libraries/LibWeb/Bindings/MouseEventWrapper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Bindings/MouseEventWrapper.h b/Libraries/LibWeb/Bindings/MouseEventWrapper.h
index 606e4017df..ffa778b1fc 100644
--- a/Libraries/LibWeb/Bindings/MouseEventWrapper.h
+++ b/Libraries/LibWeb/Bindings/MouseEventWrapper.h
@@ -42,8 +42,8 @@ public:
private:
virtual const char* class_name() const override { return "MouseEventWrapper"; }
- static JS::Value offset_x_getter(JS::Interpreter&);
- static JS::Value offset_y_getter(JS::Interpreter&);
+ JS_DECLARE_NATIVE_GETTER(offset_x_getter);
+ JS_DECLARE_NATIVE_GETTER(offset_y_getter);
};
}