mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-08 17:21:02 +00:00
24 lines
318 B
C++
24 lines
318 B
C++
|
|
#include "Object.h"
|
||
|
|
#include "Event.h"
|
||
|
|
#include <AK/Assertions.h>
|
||
|
|
|
||
|
|
Object::Object(Object* parent)
|
||
|
|
: m_parent(parent)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
Object::~Object()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
void Object::event(Event& event)
|
||
|
|
{
|
||
|
|
switch (event.type()) {
|
||
|
|
case Event::Invalid:
|
||
|
|
ASSERT_NOT_REACHED();
|
||
|
|
break;
|
||
|
|
default:
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|