#include "remoting/client/ui/fling_tracker.h"
#include <cmath>
namespace remoting {
namespace {
const float kSecToMs = …;
const float kMinTrackSpeed = …;
const float kMinDisplacement = …;
float GetDisplacement(float time_constant,
float initial_speed_rate,
float time_elapsed) { … }
float GetDuration(float time_constant, float initial_speed_rate) { … }
}
FlingTracker::FlingTracker(float time_constant)
: … { … }
FlingTracker::~FlingTracker() = default;
void FlingTracker::StartFling(float velocity_x, float velocity_y) { … }
void FlingTracker::StopFling() { … }
bool FlingTracker::IsFlingInProgress() const { … }
bool FlingTracker::TrackMovement(base::TimeDelta time_elapsed,
float* dx,
float* dy) { … }
}