#include "ui/ozone/platform/wayland/host/org_kde_kwin_idle.h"
#include <idle-client-protocol.h>
#include "base/logging.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
#include "ui/ozone/platform/wayland/host/wayland_seat.h"
namespace ui {
namespace {
constexpr uint32_t kMinVersion = …;
constexpr uint64_t kIdleThresholdMs = …;
}
class OrgKdeKwinIdle::Timeout { … };
constexpr char OrgKdeKwinIdle::kInterfaceName[];
void OrgKdeKwinIdle::Instantiate(WaylandConnection* connection,
wl_registry* registry,
uint32_t name,
const std::string& interface,
uint32_t version) { … }
OrgKdeKwinIdle::OrgKdeKwinIdle(org_kde_kwin_idle* idle,
WaylandConnection* connection)
: … { … }
OrgKdeKwinIdle::~OrgKdeKwinIdle() = default;
std::optional<base::TimeDelta> OrgKdeKwinIdle::GetIdleTime() const { … }
OrgKdeKwinIdle::Timeout::Timeout(org_kde_kwin_idle_timeout* timeout)
: … { … }
OrgKdeKwinIdle::Timeout::~Timeout() = default;
base::TimeDelta OrgKdeKwinIdle::Timeout::GetIdleTime() const { … }
void OrgKdeKwinIdle::Timeout::OnIdle(void* data,
org_kde_kwin_idle_timeout* idle_timeout) { … }
void OrgKdeKwinIdle::Timeout::OnResumed(
void* data,
org_kde_kwin_idle_timeout* idle_timeout) { … }
}