#include "third_party/blink/renderer/platform/widget/input/scroll_predictor.h"
#include "base/metrics/field_trial_params.h"
#include "base/metrics/histogram_functions.h"
#include "base/trace_event/trace_event.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/renderer/platform/widget/input/prediction/predictor_factory.h"
#include "ui/base/ui_base_features.h"
namespace blink {
ScrollPredictor::ScrollPredictor()
: … { … }
ScrollPredictor::~ScrollPredictor() = default;
void ScrollPredictor::ResetOnGestureScrollBegin(const WebGestureEvent& event) { … }
std::unique_ptr<EventWithCallback> ScrollPredictor::ResampleScrollEvents(
std::unique_ptr<EventWithCallback> event_with_callback,
base::TimeTicks frame_time,
base::TimeDelta frame_interval) { … }
std::unique_ptr<EventWithCallback>
ScrollPredictor::GenerateSyntheticScrollUpdate(
base::TimeTicks frame_time,
base::TimeDelta frame_interval,
mojom::blink::GestureDevice gesture_device,
int modifiers) { … }
bool ScrollPredictor::HasPrediction() const { … }
void ScrollPredictor::Reset() { … }
void ScrollPredictor::UpdatePrediction(const WebInputEvent& event,
base::TimeTicks frame_time) { … }
void ScrollPredictor::ResampleEvent(base::TimeTicks frame_time,
base::TimeDelta frame_interval,
WebInputEvent* event) { … }
}