blob: 971c01fe84ffc1feda22985959ced4207d8ee598 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://github.com/samuelgoto/idle-detection
enum UserIdleState {
"active",
"idle"
};
enum ScreenIdleState {
"locked",
"unlocked"
};
[
SecureContext,
Exposed=(Window,DedicatedWorker),
RuntimeEnabled=IdleDetection]
interface IdleState {
readonly attribute UserIdleState user;
readonly attribute ScreenIdleState screen;
};