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

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: Implemented ID and priority generation 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 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."
}
}
not at google - send to devlin 2012/02/02 11:59:16 I don't think we can have these here as part of th
Aaron Boodman 2012/02/02 16:28:51 It's a bigger problem that. The whole declarative
battre 2012/02/02 19:12:36 I am considering removing the nodoc from the whole
battre 2012/02/02 19:12:36 I am still in favor of this approach. I don't see
not at google - send to devlin 2012/02/03 13:06:20 Weighing in here - I still don't think that these
Aaron Boodman 2012/02/03 18:04:51 Caveat: I'm willing to let this go. Not because I
+ },
+ {
+ "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": [
@@ -120,6 +148,18 @@
}
]
}
+ ],
+ "events": [
+ {
+ "nodoc": true,
+ "name": "testEvent",
+ "options": {
+ "supportsListeners": false,
+ "supportsRules": true,
+ "conditions": ["TestCondition"],
+ "actions": ["TestAction"]
+ }
+ }
]
}
]

Powered by Google App Engine
This is Rietveld 408576698