Index: chrome/common/extensions/api/experimental.alarms.json |
diff --git a/chrome/common/extensions/api/experimental.alarms.json b/chrome/common/extensions/api/experimental.alarms.json |
deleted file mode 100644 |
index 58b835c5286706fe50618f2a8bd811dadeb2bfc4..0000000000000000000000000000000000000000 |
--- a/chrome/common/extensions/api/experimental.alarms.json |
+++ /dev/null |
@@ -1,116 +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": "experimental.alarms", |
- "types": [ |
- { |
- "id": "Alarm", |
- "type": "object", |
- "properties": { |
- "name": {"type": "string", |
- "description": "Name of this alarm."}, |
- "delayInSeconds": {"type": "integer", "minimum": "0", |
- "description": "Original length of time in seconds after which the onAlarm event should fire."}, |
- "repeating": {"type": "boolean", |
- "description": "True if the alarm repeatedly fires at regular intervals, false if it only fires once."} |
- } |
- } |
- ], |
- "functions": [ |
- { |
- "name": "create", |
- "type": "function", |
- "description": "Creates an alarm. After the delay is expired, the onAlarm event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.", |
- "parameters": [ |
- { |
- "type": "string", |
- "name": "name", |
- "optional": true, |
- "description": "Optional name to identify this alarm. Defaults to the empty string." |
- }, |
- { |
- "type": "object", |
- "name": "alarmInfo", |
- "properties": { |
- "delayInSeconds": {"type": "integer", "minimum": "0", |
- "description": "Length of time in seconds after which the onAlarm event should fire. Note that granularity is not guaranteed: this value is more of a hint to the browser. For performance reasons, alarms may be delayed an arbitrary amount of time before firing."}, |
- "repeating": {"type": "boolean", "optional": true, |
- "description": "True if the alarm should repeatedly fire at regular intervals. Defaults to false."} |
- } |
- } |
- ] |
- }, |
- { |
- "name": "get", |
- "type": "function", |
- "description": "Retrieves details about the specified alarm.", |
- "parameters": [ |
- { |
- "type": "string", |
- "name": "name", |
- "optional": true, |
- "description": "The name of the alarm to get. Defaults to the empty string." |
- }, |
- { |
- "type": "function", |
- "name": "callback", |
- "parameters": [ |
- { "name": "alarm", "$ref": "Alarm" } |
- ] |
- } |
- ] |
- }, |
- { |
- "name": "getAll", |
- "type": "function", |
- "description": "Gets an array of all the alarms.", |
- "parameters": [ |
- { |
- "type": "function", |
- "name": "callback", |
- "parameters": [ |
- { "name": "alarms", "type": "array", "items": { "$ref": "Alarm" } } |
- ] |
- } |
- ] |
- }, |
- { |
- "name": "clear", |
- "type": "function", |
- "description": "Clears the alarm with the given name.", |
- "parameters": [ |
- { |
- "type": "string", |
- "name": "name", |
- "optional": true, |
- "description": "The name of the alarm to clear. Defaults to the empty string." |
- } |
- ] |
- }, |
- { |
- "name": "clearAll", |
- "type": "function", |
- "description": "Clears all alarms.", |
- "parameters": [] |
- } |
- ], |
- "events": [ |
- { |
- "name": "onAlarm", |
- "type": "function", |
- "description": "Fired when an alarm has expired. Useful for transient background pages.", |
- "parameters": [ |
- { |
- "type": "string", |
- "name": "name", |
- "optional": true, |
- "description": "The name of the alarm that has expired." |
- } |
- ] |
- } |
- ] |
- } |
-] |