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

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

Issue 1226293002: Fix virtual/override/final usage in Source/core/{animation,css,style}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 class AnimationTimelineTiming final : public PlatformTiming { 136 class AnimationTimelineTiming final : public PlatformTiming {
137 public: 137 public:
138 AnimationTimelineTiming(AnimationTimeline* timeline) 138 AnimationTimelineTiming(AnimationTimeline* timeline)
139 : m_timeline(timeline) 139 : m_timeline(timeline)
140 , m_timer(this, &AnimationTimelineTiming::timerFired) 140 , m_timer(this, &AnimationTimelineTiming::timerFired)
141 { 141 {
142 ASSERT(m_timeline); 142 ASSERT(m_timeline);
143 } 143 }
144 144
145 virtual void wakeAfter(double duration) override; 145 void wakeAfter(double duration) override;
146 virtual void cancelWake() override; 146 void cancelWake() override;
147 virtual void serviceOnNextFrame() override; 147 void serviceOnNextFrame() override;
148 148
149 void timerFired(Timer<AnimationTimelineTiming>*) { m_timeline->wake(); } 149 void timerFired(Timer<AnimationTimelineTiming>*) { m_timeline->wake(); }
150 150
151 DECLARE_VIRTUAL_TRACE(); 151 DECLARE_VIRTUAL_TRACE();
152 152
153 private: 153 private:
154 RawPtrWillBeMember<AnimationTimeline> m_timeline; 154 RawPtrWillBeMember<AnimationTimeline> m_timeline;
155 Timer<AnimationTimelineTiming> m_timer; 155 Timer<AnimationTimelineTiming> m_timer;
156 }; 156 };
157 157
158 friend class AnimationAnimationTimelineTest; 158 friend class AnimationAnimationTimelineTest;
159 }; 159 };
160 160
161 } // namespace blink 161 } // namespace blink
162 162
163 #endif 163 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationEffectTest.cpp ('k') | Source/core/animation/CSSValueInterpolationType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698