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

Unified Diff: cc/animation/animation.h

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: 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
Index: cc/animation/animation.h
diff --git a/cc/animation/animation.h b/cc/animation/animation.h
index fb8f8d822a4914f07ed2dbb142c5e912cb2c144f..b9ffe14ce0665ab9161b4c481837a0ce4fc9defc 100644
--- a/cc/animation/animation.h
+++ b/cc/animation/animation.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
+#include "cc/animation/animation_target_property.h"
#include "cc/base/cc_export.h"
namespace cc {
@@ -39,16 +40,6 @@ class CC_EXPORT Animation {
LAST_RUN_STATE = ABORTED
};
- enum TargetProperty {
- TRANSFORM = 0,
- OPACITY,
- FILTER,
- SCROLL_OFFSET,
- BACKGROUND_COLOR,
- // This sentinel must be last.
- LAST_TARGET_PROPERTY = BACKGROUND_COLOR
- };
-
enum Direction {
DIRECTION_NORMAL,
DIRECTION_REVERSE,
@@ -63,16 +54,19 @@ class CC_EXPORT Animation {
FILL_MODE_BOTH
};
- static scoped_ptr<Animation> Create(scoped_ptr<AnimationCurve> curve,
- int animation_id,
- int group_id,
- TargetProperty target_property);
+ static scoped_ptr<Animation> Create(
+ scoped_ptr<AnimationCurve> curve,
+ int animation_id,
+ int group_id,
+ AnimationTargetProperty::Enum target_property);
virtual ~Animation();
int id() const { return id_; }
int group() const { return group_; }
- TargetProperty target_property() const { return target_property_; }
+ AnimationTargetProperty::Enum target_property() const {
+ return target_property_;
+ }
RunState run_state() const { return run_state_; }
void SetRunState(RunState run_state, base::TimeTicks monotonic_time);
@@ -175,7 +169,7 @@ class CC_EXPORT Animation {
Animation(scoped_ptr<AnimationCurve> curve,
int animation_id,
int group_id,
- TargetProperty target_property);
+ AnimationTargetProperty::Enum target_property);
base::TimeDelta ConvertToActiveTime(base::TimeTicks monotonic_time) const;
@@ -190,7 +184,7 @@ class CC_EXPORT Animation {
// all animations in the group have finished animating.
int group_;
- TargetProperty target_property_;
+ AnimationTargetProperty::Enum target_property_;
RunState run_state_;
double iterations_;
double iteration_start_;
« no previous file with comments | « cc/BUILD.gn ('k') | cc/animation/animation.cc » ('j') | cc/animation/animation_target_property.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698