blob: 33faf71920323aca4889413886b4806dd6c7bcfb [file] [log] [blame]
// Copyright 2018 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/inexorabletash/idle-detection
enum IdleState {
"active",
"idle",
"locked"
};
[
SecureContext,
Exposed=(Window,DedicatedWorker),
ActiveScriptWrappable,
RuntimeEnabled=IdleDetection
] interface IdleStatus : EventTarget {
readonly attribute IdleState state;
attribute EventHandler onchange;
};