Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "experimental.declarative", | 3 "namespace": "experimental.declarative", |
| 4 "nodoc": true, | 4 "nodoc": true, |
| 5 "types": [ | 5 "types": [ |
| 6 { | 6 { |
| 7 "id": "Rule", | 7 "id": "Rule", |
| 8 "type": "object", | 8 "type": "object", |
| 9 "description": "Description of a declarative rule for handling events.", | 9 "description": "Description of a declarative rule for handling events.", |
| 10 "properties": { | 10 "properties": { |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 "actions": { | 21 "actions": { |
| 22 "type": "array", | 22 "type": "array", |
| 23 "items": {"type": "any"}, | 23 "items": {"type": "any"}, |
| 24 "description": "List of actions that are triggered if one of the con dtions is fulfilled." | 24 "description": "List of actions that are triggered if one of the con dtions is fulfilled." |
| 25 }, | 25 }, |
| 26 "priority": { | 26 "priority": { |
| 27 "type": "integer", | 27 "type": "integer", |
| 28 "optional": true, | 28 "optional": true, |
| 29 "description": "Optional priority of this rule. Defaults to 100." | 29 "description": "Optional priority of this rule. Defaults to 100." |
| 30 } | 30 } |
| 31 } | 31 } |
|
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
| |
| 32 }, | |
| 33 { | |
| 34 "nodoc": true, | |
| 35 "id": "TestCondition", | |
| 36 "type": "object", | |
| 37 "description": "Test condition for unit testing.", | |
| 38 "properties": { | |
| 39 "testParameter": { | |
| 40 "type": "string", | |
| 41 "description": "Optional test parameter", | |
| 42 "optional": true | |
| 43 }, | |
| 44 "instanceType": { "type": "string", "enum": ["experimental.declarative .TestCondition"] } | |
| 45 } | |
| 46 }, | |
| 47 { | |
| 48 "nodoc": true, | |
| 49 "id": "TestAction", | |
| 50 "type": "object", | |
| 51 "description": "Test action for unit testing.", | |
| 52 "properties": { | |
| 53 "testParameter": { | |
| 54 "type": "string", | |
| 55 "description": "Optional test parameter", | |
| 56 "optional": true | |
| 57 }, | |
| 58 "instanceType": { "type": "string", "enum": ["experimental.declarative .TestAction"] } | |
| 59 } | |
| 32 } | 60 } |
| 33 ], | 61 ], |
| 34 "functions": [ | 62 "functions": [ |
| 35 { | 63 { |
| 36 "name": "addRules", | 64 "name": "addRules", |
| 37 "type": "function", | 65 "type": "function", |
| 38 "description": "Registers rules to handle events.", | 66 "description": "Registers rules to handle events.", |
| 39 "parameters": [ | 67 "parameters": [ |
| 40 { | 68 { |
| 41 "name": "event", | 69 "name": "event", |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 }, | 141 }, |
| 114 { | 142 { |
| 115 "name": "callback", | 143 "name": "callback", |
| 116 "optional": true, | 144 "optional": true, |
| 117 "type": "function", | 145 "type": "function", |
| 118 "parameters": [], | 146 "parameters": [], |
| 119 "description": "Called when rules were unregistered." | 147 "description": "Called when rules were unregistered." |
| 120 } | 148 } |
| 121 ] | 149 ] |
| 122 } | 150 } |
| 151 ], | |
| 152 "events": [ | |
| 153 { | |
| 154 "nodoc": true, | |
| 155 "name": "testEvent", | |
| 156 "options": { | |
| 157 "supportsListeners": false, | |
| 158 "supportsRules": true, | |
| 159 "conditions": ["TestCondition"], | |
| 160 "actions": ["TestAction"] | |
| 161 } | |
| 162 } | |
| 123 ] | 163 ] |
| 124 } | 164 } |
| 125 ] | 165 ] |
| 126 | 166 |
| OLD | NEW |