Index: chrome/common/extensions/api/events.json |
diff --git a/chrome/common/extensions/api/events.json b/chrome/common/extensions/api/events.json |
index b003fb610d9e6848ad2a64f739d390465f8fae94..cb7d2b4d89511bde5b6b740866b2c7b4a7f6e8dc 100644 |
--- a/chrome/common/extensions/api/events.json |
+++ b/chrome/common/extensions/api/events.json |
@@ -13,6 +13,33 @@ |
"unprivileged": true, |
"types": [ |
{ |
+ "id": "Rule", |
+ "type": "object", |
+ "description": "Description of a declarative rule for handling events.", |
+ "properties": { |
+ "id": { |
+ "type": "string", |
+ "optional": true, |
+ "description": "Optional identifier that allows referencing this rule." |
+ }, |
+ "conditions": { |
+ "type": "array", |
+ "items": {"type": "any"}, |
+ "description": "List of conditions that can trigger the actions." |
+ }, |
+ "actions": { |
+ "type": "array", |
+ "items": {"type": "any"}, |
+ "description": "List of actions that are triggered if one of the condtions is fulfilled." |
+ }, |
+ "priority": { |
+ "type": "integer", |
+ "optional": true, |
+ "description": "Optional priority of this rule. Defaults to 100." |
+ } |
+ } |
+ }, |
+ { |
"id": "Event", |
"type": "object", |
"description": "An object which allows the addition and removal of listeners for a Chrome event.", |
@@ -166,33 +193,6 @@ |
] |
}, |
{ |
- "id": "Rule", |
- "type": "object", |
- "description": "Description of a declarative rule for handling events.", |
- "properties": { |
- "id": { |
- "type": "string", |
- "optional": true, |
- "description": "Optional identifier that allows referencing this rule." |
- }, |
- "conditions": { |
- "type": "array", |
- "items": {"type": "any"}, |
- "description": "List of conditions that can trigger the actions." |
- }, |
- "actions": { |
- "type": "array", |
- "items": {"type": "any"}, |
- "description": "List of actions that are triggered if one of the condtions is fulfilled." |
- }, |
- "priority": { |
- "type": "integer", |
- "optional": true, |
- "description": "Optional priority of this rule. Defaults to 100." |
- } |
- } |
- }, |
- { |
"id": "UrlFilter", |
"type": "object", |
"description": "Filters URLs for various criteria. See <a href='#filtered'>event filtering</a>. All criteria are case sensitive.", |