#include "third_party/blink/renderer/platform/widget/input/elastic_overscroll_controller_exponential.h"
#include "build/build_config.h"
#include "ui/gfx/geometry/vector2d_conversions.h"
namespace blink {
namespace {
#if BUILDFLAG(IS_ANDROID)
constexpr double kRubberbandStiffness = 20;
constexpr double kRubberbandAmplitude = 0.2f;
constexpr double kRubberbandPeriod = 1.1f;
#else
constexpr double kRubberbandStiffness = …;
constexpr double kRubberbandAmplitude = …;
constexpr double kRubberbandPeriod = …;
#endif
}
ElasticOverscrollControllerExponential::ElasticOverscrollControllerExponential(
cc::ScrollElasticityHelper* helper)
: … { … }
void ElasticOverscrollControllerExponential::DidEnterMomentumAnimatedState() { … }
gfx::Vector2d ElasticOverscrollControllerExponential::StretchAmountForTimeDelta(
const base::TimeDelta& delta) const { … }
gfx::Vector2d
ElasticOverscrollControllerExponential::StretchAmountForAccumulatedOverscroll(
const gfx::Vector2dF& accumulated_overscroll) const { … }
gfx::Vector2d
ElasticOverscrollControllerExponential::AccumulatedOverscrollForStretchAmount(
const gfx::Vector2dF& delta) const { … }
}