Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3936)

Unified Diff: chrome/common/extensions/api/experimental.declarative.json

Issue 9315010: RulesRegistry for declarative APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/experimental.declarative.json
diff --git a/chrome/common/extensions/api/experimental.declarative.json b/chrome/common/extensions/api/experimental.declarative.json
index 06026e6c0756457eaae56d80e15a75e059be52de..4ca1283d5631fed3717e2850f9f46313ec5267a8 100644
--- a/chrome/common/extensions/api/experimental.declarative.json
+++ b/chrome/common/extensions/api/experimental.declarative.json
@@ -28,6 +28,34 @@
"description": "Optional priority of this rule. Defaults to 100."
}
}
+ },
+ {
+ "nodoc": true,
+ "id": "TestCondition",
+ "type": "object",
+ "description": "Test condition for unit testing.",
+ "properties": {
+ "testParameter": {
+ "type": "string",
+ "description": "Optional test parameter",
+ "optional": true
+ },
+ "instanceType": { "type": "string", "enum": ["experimental.declarative.TestCondition"] }
+ }
+ },
+ {
+ "nodoc": true,
+ "id": "TestAction",
+ "type": "object",
+ "description": "Test action for unit testing.",
+ "properties": {
+ "testParameter": {
+ "type": "string",
+ "description": "Optional test parameter",
+ "optional": true
+ },
+ "instanceType": { "type": "string", "enum": ["experimental.declarative.TestAction"] }
+ }
}
],
"functions": [
@@ -119,6 +147,18 @@
}
]
}
+ ],
+ "events": [
+ {
+ "nodoc": true,
+ "name": "testEvent",
+ "options": {
+ "supportsListeners": false,
+ "supportsRules": true,
+ "conditions": ["TestCondition"],
+ "actions": ["TestAction"]
+ }
+ }
]
}
]

Powered by Google App Engine
This is Rietveld 408576698