1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 "description": "Use the <code>chrome.idle</code> API to detect when the machine's idle state changes.",
14 "description": "Returns \"locked\" if the system is locked, \"idle\" if the user has not generated any input for a specified number of seconds, or \"active\" otherwise.",
17 "name": "detectionIntervalInSeconds",
20 "description": "The system is considered idle if detectionIntervalInSeconds seconds have elapsed since the last user input detected."
29 "enum": ["active", "idle", "locked"]
36 "name": "setDetectionInterval",
38 "description": "Sets the interval, in seconds, used to determine when the system is in an idle state for onStateChanged events. The default interval is 60 seconds.",
41 "name": "intervalInSeconds",
44 "description": "Threshold, in seconds, used to determine when the system is in an idle state."
51 "name": "onStateChanged",
53 "description": "Fired when the system changes to an active, idle or locked state. The event fires with \"locked\" if the screen is locked or the screensaver activates, \"idle\" if the system is unlocked and the user has not generated any input for a specified number of seconds, and \"active\" when the user generates input on an idle system.",
58 "enum": ["active", "idle", "locked"]