summaryrefslogtreecommitdiffstats
path: root/cc/animation/scroll_offset_animation_curve.h
diff options
context:
space:
mode:
authorajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-03 02:20:48 +0000
committerajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-03 02:20:48 +0000
commitb8384e20c14cf41b0cf6cabb08ce5078adeff2eb (patch)
treef1f0c07c4b73bd5a514baa33684e84e17007831b /cc/animation/scroll_offset_animation_curve.h
parenta1f0291ed7d8627130b4c20267a2a8bcd18f5e27 (diff)
downloadchromium_src-b8384e20c14cf41b0cf6cabb08ce5078adeff2eb.zip
chromium_src-b8384e20c14cf41b0cf6cabb08ce5078adeff2eb.tar.gz
chromium_src-b8384e20c14cf41b0cf6cabb08ce5078adeff2eb.tar.bz2
cc: Support animating scroll offset
This makes cc::LayerAnimationController support animating scroll offset. This is needed for implementing the CSSOM View smooth scroll API. BUG=243871 Review URL: https://codereview.chromium.org/95763002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/animation/scroll_offset_animation_curve.h')
-rw-r--r--cc/animation/scroll_offset_animation_curve.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/cc/animation/scroll_offset_animation_curve.h b/cc/animation/scroll_offset_animation_curve.h
index ede9b65c5..ba46615 100644
--- a/cc/animation/scroll_offset_animation_curve.h
+++ b/cc/animation/scroll_offset_animation_curve.h
@@ -21,13 +21,8 @@ class CC_EXPORT ScrollOffsetAnimationCurve : public AnimationCurve {
virtual ~ScrollOffsetAnimationCurve();
- void set_duration(double duration) { duration_ = duration; }
-
- void set_initial_value(gfx::Vector2dF initial_value) {
- initial_value_ = initial_value;
- }
-
- virtual gfx::Vector2dF GetValue(double t) const;
+ void SetInitialValue(gfx::Vector2dF initial_value);
+ gfx::Vector2dF GetValue(double t) const;
// AnimationCurve implementation
virtual double Duration() const OVERRIDE;