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

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

Issue 2527043002: Blink Animation: Request serviceOnNextFrame on animation's finish and cancel. (Closed)
Patch Set: Created 4 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 protected: 190 protected:
191 DispatchEventResult dispatchEventInternal(Event*) override; 191 DispatchEventResult dispatchEventInternal(Event*) override;
192 void addedEventListener(const AtomicString& eventType, 192 void addedEventListener(const AtomicString& eventType,
193 RegisteredEventListener&) override; 193 RegisteredEventListener&) override;
194 194
195 private: 195 private:
196 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffectReadOnly*); 196 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffectReadOnly*);
197 197
198 void clearOutdated(); 198 void clearOutdated();
199 void forceServiceOnNextFrame();
199 200
200 double effectEnd() const; 201 double effectEnd() const;
201 bool limited(double currentTime) const; 202 bool limited(double currentTime) const;
202 203
203 AnimationPlayState calculatePlayState(); 204 AnimationPlayState calculatePlayState();
204 double calculateCurrentTime() const; 205 double calculateCurrentTime() const;
205 206
206 void unpauseInternal(); 207 void unpauseInternal();
207 void setPlaybackRateInternal(double); 208 void setPlaybackRateInternal(double);
208 void updateCurrentTimingState(TimingUpdateReason); 209 void updateCurrentTimingState(TimingUpdateReason);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 312
312 bool m_currentTimePending; 313 bool m_currentTimePending;
313 bool m_stateIsBeingUpdated; 314 bool m_stateIsBeingUpdated;
314 315
315 bool m_effectSuppressed; 316 bool m_effectSuppressed;
316 }; 317 };
317 318
318 } // namespace blink 319 } // namespace blink
319 320
320 #endif // Animation_h 321 #endif // Animation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698