#include "content/browser/renderer_host/overscroll_controller.h"
#include <algorithm>
#include "base/check_op.h"
#include "base/command_line.h"
#include "base/notreached.h"
#include "content/browser/renderer_host/overscroll_controller_delegate.h"
#include "content/public/browser/overscroll_configuration.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
namespace content {
namespace {
constexpr base::TimeDelta kPullToRefreshCoolOffDelay = …;
bool IsGestureEventFromTouchpad(const blink::WebInputEvent& event) { … }
bool IsGestureEventFromAutoscroll(const blink::WebGestureEvent event) { … }
bool IsGestureScrollUpdateInertialEvent(const blink::WebInputEvent& event) { … }
float ClampAbsoluteValue(float value, float max_abs) { … }
}
OverscrollController::OverscrollController() { … }
OverscrollController::~OverscrollController() { … }
bool OverscrollController::ShouldProcessEvent(
const blink::WebInputEvent& event) { … }
bool OverscrollController::ShouldIgnoreInertialEvent(
const blink::WebInputEvent& event) const { … }
bool OverscrollController::WillHandleEvent(const blink::WebInputEvent& event) { … }
void OverscrollController::OnDidOverscroll(
const ui::DidOverscrollParams& params) { … }
void OverscrollController::ReceivedEventACK(const blink::WebInputEvent& event,
bool processed) { … }
void OverscrollController::Reset() { … }
void OverscrollController::Cancel() { … }
bool OverscrollController::DispatchEventCompletesAction(
const blink::WebInputEvent& event) const { … }
bool OverscrollController::DispatchEventResetsState(
const blink::WebInputEvent& event) const { … }
bool OverscrollController::ProcessEventForOverscroll(
const blink::WebInputEvent& event) { … }
bool OverscrollController::ProcessOverscroll(float delta_x,
float delta_y,
bool is_touchpad,
bool is_inertial) { … }
void OverscrollController::CompleteAction() { … }
void OverscrollController::SetOverscrollMode(OverscrollMode mode,
OverscrollSource source) { … }
void OverscrollController::ResetScrollState() { … }
}