summaryrefslogtreecommitdiffstats
path: root/cc/animation/animation_curve.h
diff options
context:
space:
mode:
authorajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-25 19:30:24 +0000
committerajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-25 19:30:24 +0000
commit87ecde9bc0017384d98b195dfd7e76dae63ac504 (patch)
tree13a7e43e7e934765443c06ad40f0ed939615c2b6 /cc/animation/animation_curve.h
parent150e25b76db47d0b0a2edfe27d79a5b1a6f55d07 (diff)
downloadchromium_src-87ecde9bc0017384d98b195dfd7e76dae63ac504.zip
chromium_src-87ecde9bc0017384d98b195dfd7e76dae63ac504.tar.gz
chromium_src-87ecde9bc0017384d98b195dfd7e76dae63ac504.tar.bz2
cc: Define ScrollOffsetAnimationCurve
This defines ScrollOffsetAnimationCurve, which will be used by the implementation of the CSSOM View smooth scroll API. BUG=243871 Review URL: https://codereview.chromium.org/60113007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/animation/animation_curve.h')
-rw-r--r--cc/animation/animation_curve.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cc/animation/animation_curve.h b/cc/animation/animation_curve.h
index f84bb1a..9bcccba 100644
--- a/cc/animation/animation_curve.h
+++ b/cc/animation/animation_curve.h
@@ -19,13 +19,14 @@ namespace cc {
class ColorAnimationCurve;
class FilterAnimationCurve;
class FloatAnimationCurve;
+class ScrollOffsetAnimationCurve;
class TransformAnimationCurve;
class TransformOperations;
// An animation curve is a function that returns a value given a time.
class CC_EXPORT AnimationCurve {
public:
- enum CurveType { Color, Float, Transform, Filter };
+ enum CurveType { Color, Float, Transform, Filter, ScrollOffset };
virtual ~AnimationCurve() {}
@@ -37,6 +38,9 @@ class CC_EXPORT AnimationCurve {
const FloatAnimationCurve* ToFloatAnimationCurve() const;
const TransformAnimationCurve* ToTransformAnimationCurve() const;
const FilterAnimationCurve* ToFilterAnimationCurve() const;
+ const ScrollOffsetAnimationCurve* ToScrollOffsetAnimationCurve() const;
+
+ ScrollOffsetAnimationCurve* ToScrollOffsetAnimationCurve();
};
class CC_EXPORT ColorAnimationCurve : public AnimationCurve {