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

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

Issue 2952093002: Rename SuperAnimationTimeline to AnimationTimeline (Closed)
Patch Set: Rebase Created 3 years, 5 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
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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef DocumentTimeline_h 31 #ifndef DocumentTimeline_h
32 #define DocumentTimeline_h 32 #define DocumentTimeline_h
33 33
34 #include <memory> 34 #include <memory>
35 #include "core/CoreExport.h" 35 #include "core/CoreExport.h"
36 #include "core/animation/AnimationEffectReadOnly.h" 36 #include "core/animation/AnimationEffectReadOnly.h"
37 #include "core/animation/AnimationTimeline.h"
37 #include "core/animation/EffectModel.h" 38 #include "core/animation/EffectModel.h"
38 #include "core/animation/SuperAnimationTimeline.h"
39 #include "core/dom/Element.h" 39 #include "core/dom/Element.h"
40 #include "core/dom/TaskRunnerHelper.h" 40 #include "core/dom/TaskRunnerHelper.h"
41 #include "platform/Timer.h" 41 #include "platform/Timer.h"
42 #include "platform/animation/CompositorAnimationTimeline.h" 42 #include "platform/animation/CompositorAnimationTimeline.h"
43 #include "platform/bindings/ScriptWrappable.h" 43 #include "platform/bindings/ScriptWrappable.h"
44 #include "platform/heap/Handle.h" 44 #include "platform/heap/Handle.h"
45 #include "platform/wtf/RefPtr.h" 45 #include "platform/wtf/RefPtr.h"
46 #include "platform/wtf/Vector.h" 46 #include "platform/wtf/Vector.h"
47 47
48 namespace blink { 48 namespace blink {
49 49
50 class Animation; 50 class Animation;
51 class AnimationEffectReadOnly; 51 class AnimationEffectReadOnly;
52 class Document; 52 class Document;
53 53
54 // DocumentTimeline is constructed and owned by Document, and tied to its 54 // DocumentTimeline is constructed and owned by Document, and tied to its
55 // lifecycle. 55 // lifecycle.
56 class CORE_EXPORT DocumentTimeline : public SuperAnimationTimeline { 56 class CORE_EXPORT DocumentTimeline : public AnimationTimeline {
57 DEFINE_WRAPPERTYPEINFO(); 57 DEFINE_WRAPPERTYPEINFO();
58 58
59 public: 59 public:
60 class PlatformTiming : public GarbageCollectedFinalized<PlatformTiming> { 60 class PlatformTiming : public GarbageCollectedFinalized<PlatformTiming> {
61 public: 61 public:
62 // Calls DocumentTimeline's wake() method after duration seconds. 62 // Calls DocumentTimeline's wake() method after duration seconds.
63 virtual void WakeAfter(double duration) = 0; 63 virtual void WakeAfter(double duration) = 0;
64 virtual void ServiceOnNextFrame() = 0; 64 virtual void ServiceOnNextFrame() = 0;
65 virtual ~PlatformTiming() {} 65 virtual ~PlatformTiming() {}
66 DEFINE_INLINE_VIRTUAL_TRACE() {} 66 DEFINE_INLINE_VIRTUAL_TRACE() {}
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 private: 156 private:
157 Member<DocumentTimeline> timeline_; 157 Member<DocumentTimeline> timeline_;
158 TaskRunnerTimer<DocumentTimelineTiming> timer_; 158 TaskRunnerTimer<DocumentTimelineTiming> timer_;
159 }; 159 };
160 160
161 friend class AnimationDocumentTimelineTest; 161 friend class AnimationDocumentTimelineTest;
162 }; 162 };
163 163
164 DEFINE_TYPE_CASTS(DocumentTimeline, 164 DEFINE_TYPE_CASTS(DocumentTimeline,
165 SuperAnimationTimeline, 165 AnimationTimeline,
166 timeline, 166 timeline,
167 timeline->IsDocumentTimeline(), 167 timeline->IsDocumentTimeline(),
168 timeline.IsDocumentTimeline()); 168 timeline.IsDocumentTimeline());
169 169
170 } // namespace blink 170 } // namespace blink
171 171
172 #endif 172 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/BUILD.gn ('k') | third_party/WebKit/Source/core/animation/DocumentTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698