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

Side by Side Diff: Source/core/animation/DocumentTimeline.h

Issue 96283002: Web Animations API: Start implementation of Element.animate(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move web-animations-api layout tests into LayoutTest. Created 7 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 size_t numberOfActiveAnimationsForTesting() const; 77 size_t numberOfActiveAnimationsForTesting() const;
78 78
79 void addEventToDispatch(EventTarget* target, PassRefPtr<Event> event) 79 void addEventToDispatch(EventTarget* target, PassRefPtr<Event> event)
80 { 80 {
81 m_events.append(EventToDispatch(target, event)); 81 m_events.append(EventToDispatch(target, event));
82 } 82 }
83 83
84 void dispatchEvents(); 84 void dispatchEvents();
85 void dispatchEventsAsync(); 85 void dispatchEventsAsync();
86 86
87 const Vector<RefPtr<Player> > players() const { return m_players; }
88
87 protected: 89 protected:
88 DocumentTimeline(Document*, PassOwnPtr<PlatformTiming>); 90 DocumentTimeline(Document*, PassOwnPtr<PlatformTiming>);
89 91
90 private: 92 private:
91 double m_zeroTime; 93 double m_zeroTime;
92 Document* m_document; 94 Document* m_document;
93 Timer<DocumentTimeline> m_eventDistpachTimer; 95 Timer<DocumentTimeline> m_eventDistpachTimer;
94 Vector<RefPtr<Player> > m_players; 96 Vector<RefPtr<Player> > m_players;
95 97
96 void eventDispatchTimerFired(Timer<DocumentTimeline>*); 98 void eventDispatchTimerFired(Timer<DocumentTimeline>*);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 Timer<DocumentTimelineTiming> m_timer; 133 Timer<DocumentTimelineTiming> m_timer;
132 134
133 }; 135 };
134 136
135 friend class AnimationDocumentTimelineTest; 137 friend class AnimationDocumentTimelineTest;
136 }; 138 };
137 139
138 } // namespace 140 } // namespace
139 141
140 #endif 142 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698