#include "cc/animation/scroll_offset_animation_curve_factory.h"
#include "base/memory/ptr_util.h"
#include "base/notreached.h"
#include "cc/base/features.h"
#include "ui/gfx/animation/keyframe/timing_function.h"
namespace cc {
namespace {
ScrollOffsetAnimationCurve::DurationBehavior GetDurationBehaviorFromScrollType(
ScrollOffsetAnimationCurveFactory::ScrollType scroll_type) { … }
}
std::unique_ptr<ScrollOffsetAnimationCurve>
ScrollOffsetAnimationCurveFactory::CreateAnimation(
const gfx::PointF& target_value,
ScrollType scroll_type) { … }
std::unique_ptr<ScrollOffsetAnimationCurve>
ScrollOffsetAnimationCurveFactory::CreateEaseInOutAnimationForTesting(
const gfx::PointF& target_value,
ScrollOffsetAnimationCurve::DurationBehavior duration_behavior) { … }
std::unique_ptr<ScrollOffsetAnimationCurve>
ScrollOffsetAnimationCurveFactory::CreateLinearAnimationForTesting(
const gfx::PointF& target_value) { … }
std::unique_ptr<ScrollOffsetAnimationCurve>
ScrollOffsetAnimationCurveFactory::CreateImpulseAnimationForTesting(
const gfx::PointF& target_value) { … }
std::unique_ptr<ScrollOffsetAnimationCurve>
ScrollOffsetAnimationCurveFactory::CreateEaseInOutAnimation(
const gfx::PointF& target_value,
ScrollOffsetAnimationCurve::DurationBehavior duration_behavior) { … }
std::unique_ptr<ScrollOffsetAnimationCurve>
ScrollOffsetAnimationCurveFactory::CreateLinearAnimation(
const gfx::PointF& target_value) { … }
std::unique_ptr<ScrollOffsetAnimationCurve>
ScrollOffsetAnimationCurveFactory::CreateImpulseAnimation(
const gfx::PointF& target_value) { … }
}