#include "ui/views/animation/scroll_animator.h"
#include <algorithm>
#include <cmath>
#include "base/check.h"
#include "ui/gfx/animation/slide_animation.h"
namespace {
constexpr float kDefaultAcceleration = …;
float GetPosition(float v0, float a, float t) { … }
float GetDelta(float v0, float a, float t1, float t2) { … }
}
namespace views {
ScrollAnimator::ScrollAnimator(ScrollDelegate* delegate)
: … { … }
ScrollAnimator::~ScrollAnimator() { … }
void ScrollAnimator::Start(float velocity_x, float velocity_y) { … }
void ScrollAnimator::Stop() { … }
void ScrollAnimator::AnimationEnded(const gfx::Animation* animation) { … }
void ScrollAnimator::AnimationProgressed(const gfx::Animation* animation) { … }
void ScrollAnimator::AnimationCanceled(const gfx::Animation* animation) { … }
}