mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 20:57:44 +00:00
LibWeb: Use the WRAPPER_HACK() macro instead of hand-coding wrap()
This macro will soon go away, but let's start by replacing all the hand-coded versions of wrap() with this macro that expands to the same exact thing.
This commit is contained in:
parent
bc74909308
commit
45425de849
17 changed files with 17 additions and 68 deletions
|
@ -26,7 +26,4 @@ public:
|
|||
|
||||
}
|
||||
|
||||
namespace Web::Bindings {
|
||||
inline JS::Object* wrap(JS::Realm&, Web::UIEvents::FocusEvent& object) { return &object; }
|
||||
using FocusEventWrapper = Web::UIEvents::FocusEvent;
|
||||
}
|
||||
WRAPPER_HACK(FocusEvent, Web::UIEvents)
|
||||
|
|
|
@ -71,7 +71,4 @@ private:
|
|||
|
||||
}
|
||||
|
||||
namespace Web::Bindings {
|
||||
inline JS::Object* wrap(JS::Realm&, Web::UIEvents::KeyboardEvent& object) { return &object; }
|
||||
using KeyboardEventWrapper = Web::UIEvents::KeyboardEvent;
|
||||
}
|
||||
WRAPPER_HACK(KeyboardEvent, Web::UIEvents)
|
||||
|
|
|
@ -57,7 +57,4 @@ private:
|
|||
|
||||
}
|
||||
|
||||
namespace Web::Bindings {
|
||||
inline JS::Object* wrap(JS::Realm&, Web::UIEvents::MouseEvent& object) { return &object; }
|
||||
using MouseEventWrapper = Web::UIEvents::MouseEvent;
|
||||
}
|
||||
WRAPPER_HACK(MouseEvent, Web::UIEvents)
|
||||
|
|
|
@ -49,7 +49,4 @@ protected:
|
|||
|
||||
}
|
||||
|
||||
namespace Web::Bindings {
|
||||
inline JS::Object* wrap(JS::Realm&, Web::UIEvents::UIEvent& object) { return &object; }
|
||||
using UIEventWrapper = Web::UIEvents::UIEvent;
|
||||
}
|
||||
WRAPPER_HACK(UIEvent, Web::UIEvents)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue