mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
LibWeb: Generate Event and MouseEvent bindings from IDL :^)
We still have to hand-write a function to turn an Event& into a wrapper but this is still a hue improvement. Eventually we'll find a way to auto-generate that function as well.
This commit is contained in:
parent
dd29ff884f
commit
e1bd815a6a
12 changed files with 29 additions and 177 deletions
|
@ -44,18 +44,18 @@ public:
|
|||
|
||||
virtual ~Event() {}
|
||||
|
||||
const FlyString& name() const { return m_event_name; }
|
||||
const FlyString& type() const { return m_type; }
|
||||
|
||||
virtual bool is_mouse_event() const { return false; }
|
||||
|
||||
protected:
|
||||
Event(const FlyString& event_name)
|
||||
: m_event_name(event_name)
|
||||
explicit Event(const FlyString& type)
|
||||
: m_type(type)
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
FlyString m_event_name;
|
||||
FlyString m_type;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue