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

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

Issue 210363007: Declare onFinish event handler for AnimationPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Stop using ContextLifecycleObserver Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « Source/core/animation/AnimationPlayer.idl ('k') | Source/core/animation/DocumentTimeline.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool hasPendingUpdates() const { return !m_playersNeedingUpdate.isEmpty(); } 81 bool hasPendingUpdates() const { return !m_playersNeedingUpdate.isEmpty(); }
82 double zeroTime() const { return m_zeroTime; } 82 double zeroTime() const { return m_zeroTime; }
83 double currentTime(); 83 double currentTime();
84 double effectiveTime(); 84 double effectiveTime();
85 void pauseAnimationsForTesting(double); 85 void pauseAnimationsForTesting(double);
86 size_t numberOfActiveAnimationsForTesting() const; 86 size_t numberOfActiveAnimationsForTesting() const;
87 87
88 void setOutdatedAnimationPlayer(AnimationPlayer*); 88 void setOutdatedAnimationPlayer(AnimationPlayer*);
89 bool hasOutdatedAnimationPlayer() const { return m_hasOutdatedAnimationPlaye r; } 89 bool hasOutdatedAnimationPlayer() const { return m_hasOutdatedAnimationPlaye r; }
90 90
91 Document* document() { return m_document; }
91 void detachFromDocument(); 92 void detachFromDocument();
92 93
93 protected: 94 protected:
94 DocumentTimeline(Document*, PassOwnPtr<PlatformTiming>); 95 DocumentTimeline(Document*, PassOwnPtr<PlatformTiming>);
95 96
96 private: 97 private:
97 double m_zeroTime; 98 double m_zeroTime;
98 Document* m_document; 99 Document* m_document;
99 // AnimationPlayers which will be updated on the next frame 100 // AnimationPlayers which will be updated on the next frame
100 // i.e. current, in effect, or had timing changed 101 // i.e. current, in effect, or had timing changed
(...skipping 28 matching lines...) Expand all
129 Timer<DocumentTimelineTiming> m_timer; 130 Timer<DocumentTimelineTiming> m_timer;
130 131
131 }; 132 };
132 133
133 friend class AnimationDocumentTimelineTest; 134 friend class AnimationDocumentTimelineTest;
134 }; 135 };
135 136
136 } // namespace 137 } // namespace
137 138
138 #endif 139 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationPlayer.idl ('k') | Source/core/animation/DocumentTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698