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

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

Issue 961993003: Web Animations: Fix Player's timing update when source content becomes longer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test Created 5 years, 9 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // n - if this player requires an update after 'n' units of time 75 // n - if this player requires an update after 'n' units of time
76 double timeToEffectChange(); 76 double timeToEffectChange();
77 77
78 void cancel(); 78 void cancel();
79 79
80 double currentTime(bool& isNull); 80 double currentTime(bool& isNull);
81 double currentTime(); 81 double currentTime();
82 void setCurrentTime(double newCurrentTime); 82 void setCurrentTime(double newCurrentTime);
83 83
84 double currentTimeInternal() const; 84 double currentTimeInternal() const;
85 double unlimitedCurrentTimeInternal() const;
85 86
86 void setCurrentTimeInternal(double newCurrentTime, TimingUpdateReason = Timi ngUpdateOnDemand); 87 void setCurrentTimeInternal(double newCurrentTime, TimingUpdateReason = Timi ngUpdateOnDemand);
87 bool paused() const { return m_paused && !m_isPausedForTesting; } 88 bool paused() const { return m_paused && !m_isPausedForTesting; }
88 static const char* playStateString(AnimationPlayState); 89 static const char* playStateString(AnimationPlayState);
89 String playState() const { return playStateString(playStateInternal()); } 90 String playState() const { return playStateString(playStateInternal()); }
90 AnimationPlayState playStateInternal() const; 91 AnimationPlayState playStateInternal() const;
91 92
92 void pause(); 93 void pause();
93 void play(); 94 void play();
94 void reverse(); 95 void reverse();
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 int m_compositorGroup; 265 int m_compositorGroup;
265 266
266 bool m_currentTimePending; 267 bool m_currentTimePending;
267 bool m_stateIsBeingUpdated; 268 bool m_stateIsBeingUpdated;
268 269
269 }; 270 };
270 271
271 } // namespace blink 272 } // namespace blink
272 273
273 #endif // AnimationPlayer_h 274 #endif // AnimationPlayer_h
OLDNEW
« no previous file with comments | « LayoutTests/web-animations-api/player-source-becomes-longer.html ('k') | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698