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

Unified Diff: cc/test/animation_test_common.h

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « cc/proto/property_tree.proto ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_test_common.h
diff --git a/cc/test/animation_test_common.h b/cc/test/animation_test_common.h
index 255bdace499cecbb50cb4e5774e1261c6cdfdf2f..5c9e6b2e262065852b445d4c79f471cd59ea264c 100644
--- a/cc/test/animation_test_common.h
+++ b/cc/test/animation_test_common.h
@@ -8,6 +8,7 @@
#include "cc/animation/animation.h"
#include "cc/animation/animation_curve.h"
#include "cc/animation/animation_timeline.h"
+#include "cc/animation/element_id.h"
#include "cc/animation/transform_operations.h"
#include "cc/output/filter_operations.h"
#include "cc/test/geometry_test_utils.h"
@@ -117,56 +118,57 @@ int AddOpacityStepsToElementAnimations(ElementAnimations* target,
float end_opacity,
int num_steps);
-void AddAnimationToLayerWithPlayer(int layer_id,
- scoped_refptr<AnimationTimeline> timeline,
- std::unique_ptr<Animation> animation);
-void AddAnimationToLayerWithExistingPlayer(
- int layer_id,
+void AddAnimationToElementWithPlayer(ElementId element_id,
+ scoped_refptr<AnimationTimeline> timeline,
+ std::unique_ptr<Animation> animation);
+void AddAnimationToElementWithExistingPlayer(
+ ElementId element_id,
scoped_refptr<AnimationTimeline> timeline,
std::unique_ptr<Animation> animation);
-void RemoveAnimationFromLayerWithExistingPlayer(
- int layer_id,
+void RemoveAnimationFromElementWithExistingPlayer(
+ ElementId element_id,
scoped_refptr<AnimationTimeline> timeline,
int animation_id);
-Animation* GetAnimationFromLayerWithExistingPlayer(
- int layer_id,
+Animation* GetAnimationFromElementWithExistingPlayer(
+ ElementId element_id,
scoped_refptr<AnimationTimeline> timeline,
int animation_id);
-int AddAnimatedFilterToLayerWithPlayer(
- int layer_id,
+int AddAnimatedFilterToElementWithPlayer(
+ ElementId element_id,
scoped_refptr<AnimationTimeline> timeline,
double duration,
float start_brightness,
float end_brightness);
-int AddAnimatedTransformToLayerWithPlayer(
- int layer_id,
+int AddAnimatedTransformToElementWithPlayer(
+ ElementId element_id,
scoped_refptr<AnimationTimeline> timeline,
double duration,
int delta_x,
int delta_y);
-int AddAnimatedTransformToLayerWithPlayer(
- int layer_id,
+int AddAnimatedTransformToElementWithPlayer(
+ ElementId element_id,
scoped_refptr<AnimationTimeline> timeline,
double duration,
TransformOperations start_operations,
TransformOperations operations);
-int AddOpacityTransitionToLayerWithPlayer(
- int layer_id,
+int AddOpacityTransitionToElementWithPlayer(
+ ElementId element_id,
scoped_refptr<AnimationTimeline> timeline,
double duration,
float start_opacity,
float end_opacity,
bool use_timing_function);
-void AbortAnimationsOnLayerWithPlayer(int layer_id,
- scoped_refptr<AnimationTimeline> timeline,
- TargetProperty::Type target_property);
+void AbortAnimationsOnElementWithPlayer(
+ ElementId element_id,
+ scoped_refptr<AnimationTimeline> timeline,
+ TargetProperty::Type target_property);
} // namespace cc
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698