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

Side by Side Diff: Source/core/page/animation/AnimationController.h

Issue 14556022: Simplify animation testing API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 7 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 AnimationController(Frame*); 49 AnimationController(Frame*);
50 ~AnimationController(); 50 ~AnimationController();
51 51
52 void cancelAnimations(RenderObject*); 52 void cancelAnimations(RenderObject*);
53 PassRefPtr<RenderStyle> updateAnimations(RenderObject*, RenderStyle* newStyl e); 53 PassRefPtr<RenderStyle> updateAnimations(RenderObject*, RenderStyle* newStyl e);
54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); 54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*);
55 55
56 // This is called when an accelerated animation or transition has actually s tarted to animate. 56 // This is called when an accelerated animation or transition has actually s tarted to animate.
57 void notifyAnimationStarted(RenderObject*, double startTime); 57 void notifyAnimationStarted(RenderObject*, double startTime);
58 58
59 bool pauseAnimationAtTime(RenderObject*, const AtomicString& name, double t) ; // To be used only for testing 59 void pauseAnimationsForTesting(double t);
60 bool pauseTransitionAtTime(RenderObject*, const String& property, double t); // To be used only for testing
61 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t esting 60 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t esting
62 61
63 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni ngNow = true) const; 62 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni ngNow = true) const;
64 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, b ool isRunningNow = true) const; 63 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, b ool isRunningNow = true) const;
65 64
66 void suspendAnimations(); 65 void suspendAnimations();
67 void resumeAnimations(); 66 void resumeAnimations();
68 void serviceAnimations(); 67 void serviceAnimations();
69 68
70 void suspendAnimationsForDocument(Document*); 69 void suspendAnimationsForDocument(Document*);
(...skipping 23 matching lines...) Expand all
94 if (m_animationController) 93 if (m_animationController)
95 m_animationController->endAnimationUpdate(); 94 m_animationController->endAnimationUpdate();
96 } 95 }
97 96
98 AnimationController* m_animationController; 97 AnimationController* m_animationController;
99 }; 98 };
100 99
101 } // namespace WebCore 100 } // namespace WebCore
102 101
103 #endif // AnimationController_h 102 #endif // AnimationController_h
OLDNEW
« no previous file with comments | « LayoutTests/transitions/transition-hit-test-transform.html ('k') | Source/core/page/animation/AnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698