Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Unified Diff: Source/core/animation/DocumentTimeline.h

Issue 22123002: Web Animations: Implement CSS Animation events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address feedback. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/Animation.cpp ('k') | Source/core/animation/DocumentTimeline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/DocumentTimeline.h
diff --git a/Source/core/animation/DocumentTimeline.h b/Source/core/animation/DocumentTimeline.h
index 4f0d7f12333464a344403dcc751c51a683a5656d..f5e438fd7dbf00002897499aec1c5dcf9e5977bb 100644
--- a/Source/core/animation/DocumentTimeline.h
+++ b/Source/core/animation/DocumentTimeline.h
@@ -34,6 +34,7 @@
#include "core/animation/ActiveAnimations.h"
#include "core/animation/Player.h"
#include "core/dom/Element.h"
+#include "core/dom/Event.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
@@ -58,12 +59,28 @@ public:
return animations->defaultStack();
return 0;
}
+ void addEventToDispatch(EventTarget* target, PassRefPtr<Event> event)
+ {
+ m_events.append(EventToDispatch(target, event));
+ }
private:
DocumentTimeline(Document*);
+ void dispatchEvents();
double m_currentTime;
Document* m_document;
Vector<RefPtr<Player> > m_players;
+
+ struct EventToDispatch {
+ EventToDispatch(EventTarget* target, PassRefPtr<Event> event)
+ : target(target)
+ , event(event)
+ {
+ }
+ RefPtr<EventTarget> target;
+ RefPtr<Event> event;
+ };
+ Vector<EventToDispatch> m_events;
};
} // namespace
« no previous file with comments | « Source/core/animation/Animation.cpp ('k') | Source/core/animation/DocumentTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698