#include "third_party/blink/renderer/platform/scheduler/main_thread/user_model.h"
#include "base/trace_event/trace_event.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
namespace blink {
namespace scheduler {
UserModel::UserModel() = default;
void UserModel::DidStartProcessingInputEvent(blink::WebInputEvent::Type type,
const base::TimeTicks now) { … }
void UserModel::DidFinishProcessingInputEvent(const base::TimeTicks now) { … }
void UserModel::DidProcessDiscreteInputEvent(const base::TimeTicks now) { … }
void UserModel::DidProcessDiscreteInputResponse() { … }
base::TimeDelta UserModel::TimeLeftInContinuousUserGesture(
base::TimeTicks now) const { … }
base::TimeDelta UserModel::TimeLeftUntilDiscreteInputResponseDeadline(
base::TimeTicks now) const { … }
bool UserModel::IsGestureExpectedSoon(
const base::TimeTicks now,
base::TimeDelta* prediction_valid_duration) { … }
bool UserModel::IsGestureExpectedSoonImpl(
const base::TimeTicks now,
base::TimeDelta* prediction_valid_duration) const { … }
bool UserModel::IsGestureExpectedToContinue(
const base::TimeTicks now,
base::TimeDelta* prediction_valid_duration) const { … }
void UserModel::Reset(base::TimeTicks now) { … }
void UserModel::WriteIntoTrace(perfetto::TracedValue context) const { … }
}
}