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

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: Addressed comments 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/api_test/declarative/api/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5f3abe28b3e04575e4e821f647d31b5ffcd7f66d..7c3f253909bf6d965dd2dc88fb0d6fb5bbfe1ea9 100644
--- a/chrome/common/extensions/api/experimental.declarative.json
+++ b/chrome/common/extensions/api/experimental.declarative.json
@@ -29,6 +29,34 @@
"description": "Optional priority of this rule. Defaults to 100."
}
}
+ },
+ {
+ "nodoc": true,
+ "id": "TestCondition",
battre 2012/02/06 16:21:04 I have removed these. Let's hope it does not bite
+ "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": [
@@ -120,6 +148,18 @@
}
]
}
+ ],
+ "events": [
+ {
+ "nodoc": true,
+ "name": "testEvent",
+ "options": {
+ "supportsListeners": false,
+ "supportsRules": true,
+ "conditions": ["TestCondition"],
+ "actions": ["TestAction"]
+ }
+ }
]
}
]
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/api_test/declarative/api/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698