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

Unified Diff: chrome/common/extensions/api/events.json

Issue 11953121: Fix up how the JSON Schema compiler decides whether to include or forward (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert changes to webview so that this can land Created 7 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/common/extensions/api/app_window.idl ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.",
« no previous file with comments | « chrome/common/extensions/api/app_window.idl ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698