chromium/ui/base/idle/idle_internal.h

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_BASE_IDLE_IDLE_INTERNAL_H_
#define UI_BASE_IDLE_IDLE_INTERNAL_H_

#include <optional>

#include "base/component_export.h"
#include "ui/base/idle/idle.h"

namespace ui {

// An optional idle state set by tests via a ScopedSetIdleState to override the
// actual idle state of the system.
COMPONENT_EXPORT(UI_BASE_IDLE) std::optional<IdleState>& IdleStateForTesting();

}  // namespace ui

#endif  // UI_BASE_IDLE_IDLE_INTERNAL_H_