#include "ui/base/idle/idle_polling_service.h"
#include "base/no_destructor.h"
#include "base/observer_list.h"
#include "base/task/sequenced_task_runner.h"
#include "ui/base/idle/idle.h"
#include "ui/base/idle/idle_time_provider.h"
namespace ui {
namespace {
class DefaultIdleProvider : public IdleTimeProvider { … };
}
IdlePollingService* IdlePollingService::GetInstance() { … }
const IdlePollingService::State& IdlePollingService::GetIdleState() { … }
void IdlePollingService::AddObserver(Observer* observer) { … }
void IdlePollingService::RemoveObserver(Observer* observer) { … }
void IdlePollingService::SetProviderForTest(
std::unique_ptr<IdleTimeProvider> provider) { … }
void IdlePollingService::SetPollIntervalForTest(base::TimeDelta poll_interval) { … }
bool IdlePollingService::IsPollingForTest() { … }
void IdlePollingService::SetTaskRunnerForTest(
scoped_refptr<base::SequencedTaskRunner> task_runner) { … }
IdlePollingService::IdlePollingService()
: … { … }
IdlePollingService::~IdlePollingService() = default;
void IdlePollingService::PollIdleState() { … }
}