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

Unified Diff: cc/test/animation_test_common.cc

Issue 1700653002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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/test/animation_test_common.h ('k') | cc/test/animation_timelines_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_test_common.cc
diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
index f61e9bbc5ce96384012935e63d3ab75668e3c601..cc02e6336909c745e588121d7bf9cd584a51c253 100644
--- a/cc/test/animation_test_common.cc
+++ b/cc/test/animation_test_common.cc
@@ -47,7 +47,7 @@ int AddOpacityTransition(Target* target,
scoped_ptr<Animation> animation(Animation::Create(
std::move(curve), id, AnimationIdProvider::NextGroupId(),
- Animation::OPACITY));
+ TargetProperty::OPACITY));
animation->set_needs_synchronized_start_time(true);
target->AddAnimation(std::move(animation));
@@ -74,7 +74,7 @@ int AddAnimatedTransform(Target* target,
scoped_ptr<Animation> animation(Animation::Create(
std::move(curve), id, AnimationIdProvider::NextGroupId(),
- Animation::TRANSFORM));
+ TargetProperty::TRANSFORM));
animation->set_needs_synchronized_start_time(true);
target->AddAnimation(std::move(animation));
@@ -119,9 +119,9 @@ int AddAnimatedFilter(Target* target,
int id = AnimationIdProvider::NextAnimationId();
- scoped_ptr<Animation> animation(
- Animation::Create(std::move(curve), id,
- AnimationIdProvider::NextGroupId(), Animation::FILTER));
+ scoped_ptr<Animation> animation(Animation::Create(
+ std::move(curve), id, AnimationIdProvider::NextGroupId(),
+ TargetProperty::FILTER));
animation->set_needs_synchronized_start_time(true);
target->AddAnimation(std::move(animation));
@@ -417,7 +417,7 @@ int AddOpacityStepsToController(LayerAnimationController* target,
scoped_ptr<Animation> animation(Animation::Create(
std::move(curve), id, AnimationIdProvider::NextGroupId(),
- Animation::OPACITY));
+ TargetProperty::OPACITY));
animation->set_needs_synchronized_start_time(true);
target->AddAnimation(std::move(animation));
@@ -525,10 +525,9 @@ int AddOpacityTransitionToLayerWithPlayer(
end_opacity, use_timing_function);
}
-void AbortAnimationsOnLayerWithPlayer(
- int layer_id,
- scoped_refptr<AnimationTimeline> timeline,
- Animation::TargetProperty target_property) {
+void AbortAnimationsOnLayerWithPlayer(int layer_id,
+ scoped_refptr<AnimationTimeline> timeline,
+ TargetProperty::Type target_property) {
LayerAnimationController* controller =
timeline->animation_host()->GetControllerForLayerId(layer_id);
DCHECK(controller);
« no previous file with comments | « cc/test/animation_test_common.h ('k') | cc/test/animation_timelines_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698