#include "ui/events/gesture_detection/snap_scroll_controller.h"
#include <algorithm>
#include <cmath>
#include "ui/events/velocity_tracker/motion_event.h"
namespace ui {
namespace {
const float kMinSnapRatio = …;
const float kSnapBoundToChannelMultiplier = …;
float CalculateChannelDistance(float snap_bound,
const gfx::SizeF& display_size) { … }
}
SnapScrollController::SnapScrollController(const gfx::SizeF& display_size)
: … { … }
void SnapScrollController::SetSnapScrollMode(
const MotionEvent& event,
bool is_scale_gesture_detection_in_progress,
float slop_distance) { … }
void SnapScrollController::UpdateSnapScrollMode(float distance_x,
float distance_y,
float slop_distance) { … }
bool SnapScrollController::IsSnapVertical() const { … }
bool SnapScrollController::IsSnapHorizontal() const { … }
bool SnapScrollController::IsSnappingScrolls() const { … }
}