#include "ui/events/ozone/keyboard/event_auto_repeat_handler.h"
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/event_constants.h"
namespace ui {
namespace {
constexpr int kRepeatDelayMs = …;
constexpr int kRepeatIntervalMs = …;
}
EventAutoRepeatHandler::EventAutoRepeatHandler(Delegate* delegate)
: … { … }
EventAutoRepeatHandler::~EventAutoRepeatHandler() { … }
bool EventAutoRepeatHandler::IsAutoRepeatEnabled() { … }
void EventAutoRepeatHandler::SetAutoRepeatEnabled(bool enabled) { … }
void EventAutoRepeatHandler::SetAutoRepeatRate(
const base::TimeDelta& delay,
const base::TimeDelta& interval) { … }
void EventAutoRepeatHandler::GetAutoRepeatRate(base::TimeDelta* delay,
base::TimeDelta* interval) { … }
void EventAutoRepeatHandler::UpdateKeyRepeat(unsigned int key,
unsigned int scan_code,
bool down,
bool suppress_auto_repeat,
int device_id,
base::TimeTicks base_timestamp) { … }
void EventAutoRepeatHandler::StartKeyRepeat(unsigned int key,
unsigned int scan_code,
int device_id,
base::TimeTicks base_timestamp) { … }
void EventAutoRepeatHandler::StopKeyRepeat() { … }
void EventAutoRepeatHandler::ScheduleKeyRepeat(const base::TimeDelta& delay) { … }
void EventAutoRepeatHandler::OnRepeatTimeout(unsigned int sequence) { … }
void EventAutoRepeatHandler::OnRepeatCommit(unsigned int sequence) { … }
}