summaryrefslogtreecommitdiffstats
path: root/toolkit/components/webextensions/schemas/idle.json
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2019-03-13 07:49:07 +0100
committerGitHub <noreply@github.com>2019-03-13 07:49:07 +0100
commitbf0413359245579e9509146d42cd5547e35da695 (patch)
tree8218d4f60d9eccacbf42df8cb88094a082d401b4 /toolkit/components/webextensions/schemas/idle.json
parent51b821b3fdc5a7eab2369cb6a6680598a6264b08 (diff)
parent709bc24e9110eba12f94cfcb8db00a8338ac4098 (diff)
downloadUXP-bf0413359245579e9509146d42cd5547e35da695.tar
UXP-bf0413359245579e9509146d42cd5547e35da695.tar.gz
UXP-bf0413359245579e9509146d42cd5547e35da695.tar.lz
UXP-bf0413359245579e9509146d42cd5547e35da695.tar.xz
UXP-bf0413359245579e9509146d42cd5547e35da695.zip
Merge pull request #998 from MoonchildProductions/master
Merge master into Sync-weave
Diffstat (limited to 'toolkit/components/webextensions/schemas/idle.json')
-rw-r--r--toolkit/components/webextensions/schemas/idle.json70
1 files changed, 0 insertions, 70 deletions
diff --git a/toolkit/components/webextensions/schemas/idle.json b/toolkit/components/webextensions/schemas/idle.json
deleted file mode 100644
index e0b3b951e..000000000
--- a/toolkit/components/webextensions/schemas/idle.json
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) 2012 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.
-
-[
- {
- "namespace": "idle",
- "description": "Use the <code>browser.idle</code> API to detect when the machine's idle state changes.",
- "permissions": ["idle"],
- "types": [
- {
- "id": "IdleState",
- "type": "string",
- "enum": ["active", "idle"]
- }
- ],
- "functions": [
- {
- "name": "queryState",
- "type": "function",
- "description": "Returns \"idle\" if the user has not generated any input for a specified number of seconds, or \"active\" otherwise.",
- "async": "callback",
- "parameters": [
- {
- "name": "detectionIntervalInSeconds",
- "type": "integer",
- "minimum": 15,
- "description": "The system is considered idle if detectionIntervalInSeconds seconds have elapsed since the last user input detected."
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": [
- {
- "name": "newState",
- "$ref": "IdleState"
- }
- ]
- }
- ]
- },
- {
- "name": "setDetectionInterval",
- "type": "function",
- "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.",
- "parameters": [
- {
- "name": "intervalInSeconds",
- "type": "integer",
- "minimum": 15,
- "description": "Threshold, in seconds, used to determine when the system is in an idle state."
- }
- ]
- }
- ],
- "events": [
- {
- "name": "onStateChanged",
- "type": "function",
- "description": "Fired when the system changes to an active or idle state. The event fires with \"idle\" if the the user has not generated any input for a specified number of seconds, and \"active\" when the user generates input on an idle system.",
- "parameters": [
- {
- "name": "newState",
- "$ref": "IdleState"
- }
- ]
- }
- ]
- }
-]