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

Unified Diff: cc/animation/scroll_offset_animation_curve.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/animation/layer_animation_value_provider.h ('k') | cc/animation/scroll_offset_animation_curve.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/scroll_offset_animation_curve.h
diff --git a/cc/animation/scroll_offset_animation_curve.h b/cc/animation/scroll_offset_animation_curve.h
deleted file mode 100644
index c4ae70b411a3eecbff77b94d9561ea2bf958d6a7..0000000000000000000000000000000000000000
--- a/cc/animation/scroll_offset_animation_curve.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_ANIMATION_SCROLL_OFFSET_ANIMATION_CURVE_H_
-#define CC_ANIMATION_SCROLL_OFFSET_ANIMATION_CURVE_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/time/time.h"
-#include "cc/animation/animation_curve.h"
-#include "cc/base/cc_export.h"
-#include "ui/gfx/geometry/scroll_offset.h"
-
-namespace cc {
-
-class TimingFunction;
-
-class CC_EXPORT ScrollOffsetAnimationCurve : public AnimationCurve {
- public:
- static scoped_ptr<ScrollOffsetAnimationCurve> Create(
- const gfx::ScrollOffset& target_value,
- scoped_ptr<TimingFunction> timing_function);
-
- ~ScrollOffsetAnimationCurve() override;
-
- void SetInitialValue(const gfx::ScrollOffset& initial_value);
- gfx::ScrollOffset GetValue(base::TimeDelta t) const;
- gfx::ScrollOffset target_value() const { return target_value_; }
- void UpdateTarget(double t, const gfx::ScrollOffset& new_target);
-
- // AnimationCurve implementation
- base::TimeDelta Duration() const override;
- CurveType Type() const override;
- scoped_ptr<AnimationCurve> Clone() const override;
-
- private:
- ScrollOffsetAnimationCurve(const gfx::ScrollOffset& target_value,
- scoped_ptr <TimingFunction> timing_function);
-
- gfx::ScrollOffset initial_value_;
- gfx::ScrollOffset target_value_;
- base::TimeDelta total_animation_duration_;
-
- // Time from animation start to most recent UpdateTarget.
- base::TimeDelta last_retarget_;
-
- scoped_ptr<TimingFunction> timing_function_;
-
- DISALLOW_COPY_AND_ASSIGN(ScrollOffsetAnimationCurve);
-};
-
-} // namespace cc
-
-#endif // CC_ANIMATION_SCROLL_OFFSET_ANIMATION_CURVE_H_
« no previous file with comments | « cc/animation/layer_animation_value_provider.h ('k') | cc/animation/scroll_offset_animation_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698