#include "ui/base/user_activity/user_activity_detector.h"
#include "base/format_macros.h"
#include "base/logging.h"
#include "base/observer_list.h"
#include "base/strings/stringprintf.h"
#include "base/types/cxx23_to_underlying.h"
#include "build/build_config.h"
#include "ui/base/user_activity/user_activity_observer.h"
#include "ui/events/event_utils.h"
#include "ui/events/platform/platform_event_source.h"
namespace ui {
namespace {
std::string GetEventDebugString(const ui::Event* event) { … }
}
const int UserActivityDetector::kNotifyIntervalMs = …;
const int UserActivityDetector::kDisplayPowerChangeIgnoreMouseMs = …;
UserActivityDetector* UserActivityDetector::Get() { … }
bool UserActivityDetector::HasObserver(
const UserActivityObserver* observer) const { … }
void UserActivityDetector::AddObserver(UserActivityObserver* observer) { … }
void UserActivityDetector::RemoveObserver(UserActivityObserver* observer) { … }
void UserActivityDetector::OnDisplayPowerChanging() { … }
void UserActivityDetector::HandleExternalUserActivity() { … }
void UserActivityDetector::DidProcessEvent(
const PlatformEvent& platform_event) { … }
void UserActivityDetector::PlatformEventSourceDestroying() { … }
void UserActivityDetector::ResetStateForTesting() { … }
void UserActivityDetector::InitPlatformEventSourceObservationForTesting() { … }
UserActivityDetector::UserActivityDetector() { … }
UserActivityDetector::~UserActivityDetector() = default;
void UserActivityDetector::InitPlatformEventSourceObservation() { … }
base::TimeTicks UserActivityDetector::GetCurrentTime() const { … }
void UserActivityDetector::ProcessReceivedEvent(const ui::Event* event) { … }
void UserActivityDetector::HandleActivity(const ui::Event* event) { … }
}