15 #ifndef SHAKA_EMBEDDED_JS_EVENTS_EVENT_H_ 16 #define SHAKA_EMBEDDED_JS_EVENTS_EVENT_H_ 32 DECLARE_TYPE_INFO(
Event);
45 explicit Event(EventType type);
48 return new Event(type);
55 return stop_propagation_;
58 return stop_immediate_propagation_;
78 bool stop_propagation_ =
false;
79 bool stop_immediate_propagation_ =
false;
92 #endif // SHAKA_EMBEDDED_JS_EVENTS_EVENT_H_
static Event * Create(const std::string &type)
bool is_immediate_stopped() const
void Trace(memory::HeapTracer *tracer) const override
Event(const std::string &type)
Member< EventTarget > current_target
Member< EventTarget > target
bool IsShortLived() const override
void StopImmediatePropagation()