1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:27:34 +00:00

LibWeb: Add Animation event handler attributes

This commit is contained in:
Matthew Olsson 2024-02-10 20:51:54 -07:00 committed by Andreas Kling
parent 2dd5d0c310
commit d2cfea5acc
3 changed files with 46 additions and 3 deletions

View file

@ -66,6 +66,13 @@ public:
JS::NonnullGCPtr<JS::Object> finished() const { return *current_finished_promise()->promise(); }
bool is_finished() const { return m_is_finished; }
JS::GCPtr<WebIDL::CallbackType> onfinish();
void set_onfinish(JS::GCPtr<WebIDL::CallbackType>);
JS::GCPtr<WebIDL::CallbackType> oncancel();
void set_oncancel(JS::GCPtr<WebIDL::CallbackType>);
JS::GCPtr<WebIDL::CallbackType> onremove();
void set_onremove(JS::GCPtr<WebIDL::CallbackType>);
enum class AutoRewind {
Yes,
No,