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

Unified Diff: Source/core/animation/AnimationPlayer.idl

Issue 562493002: Web Animations: Use an IDL enum for AnimationPlayState (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationPlayer.idl
diff --git a/Source/core/animation/AnimationPlayer.idl b/Source/core/animation/AnimationPlayer.idl
index ccd618f92b247f043ae6cc8431ed508ec244e89f..07389996946dacdc40a4918053fb38a74bde26ab 100644
--- a/Source/core/animation/AnimationPlayer.idl
+++ b/Source/core/animation/AnimationPlayer.idl
@@ -28,6 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum AnimationPlayState { "idle", "pending", "playing", "paused", "finished" };
alancutter (OOO until 2018) 2014/09/10 01:19:28 s/playing/running/
dstockwell 2014/09/10 01:22:57 Done.
+
[
NoInterfaceObject,
WillBeGarbageCollected,
@@ -37,7 +39,7 @@
[RuntimeEnabled=WebAnimationsPlaybackControl] attribute double startTime;
[RuntimeEnabled=WebAnimationsPlaybackControl] attribute double currentTime;
[RuntimeEnabled=WebAnimationsPlaybackControl] attribute double playbackRate;
- [RuntimeEnabled=WebAnimationsPlaybackControl] readonly attribute DOMString playState;
+ [RuntimeEnabled=WebAnimationsPlaybackControl] readonly attribute AnimationPlayState playState;
[RuntimeEnabled=WebAnimationsPlaybackControl, RaisesException] void finish();
[RuntimeEnabled=WebAnimationsPlaybackControl] void play();
[RuntimeEnabled=WebAnimationsPlaybackControl] void pause();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698