| OLD | NEW |
| 1 { | 1 { |
| 2 "domains": [ | 2 "domains": [ |
| 3 { | 3 { |
| 4 "commands": [ | 4 "commands": [ |
| 5 { | 5 { |
| 6 "description": "Enables DOM agent for the given page.", | 6 "description": "Enables DOM agent for the given page.", |
| 7 "name": "enable" | 7 "name": "enable" |
| 8 }, | 8 }, |
| 9 { | 9 { |
| 10 "description": "Disables DOM agent for the given page.", | 10 "description": "Disables DOM agent for the given page.", |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 { | 121 { |
| 122 "description": "<code>Attr</code>'s value.", | 122 "description": "<code>Attr</code>'s value.", |
| 123 "name": "value", | 123 "name": "value", |
| 124 "optional": true, | 124 "optional": true, |
| 125 "type": "string" | 125 "type": "string" |
| 126 } | 126 } |
| 127 ], | 127 ], |
| 128 "type": "object" | 128 "type": "object" |
| 129 } | 129 } |
| 130 ] | 130 ] |
| 131 }, |
| 132 { |
| 133 "commands": [ |
| 134 { |
| 135 "description": "Enables CSS agent for the given page.", |
| 136 "name": "enable" |
| 137 }, |
| 138 { |
| 139 "description": "Disables CSS agent for the given page.", |
| 140 "name": "disable" |
| 141 }, |
| 142 { |
| 143 "description": "Returns requested styles for a DOM node iden
tified by <code>nodeId</code>.", |
| 144 "name": "getMatchedStylesForNode", |
| 145 "parameters": [ |
| 146 { |
| 147 "$ref": "DOM.NodeId", |
| 148 "name": "nodeId" |
| 149 } |
| 150 ], |
| 151 "returns": [ |
| 152 { |
| 153 "$ref": "CSSStyle", |
| 154 "description": "Inline style for the specified DOM n
ode.", |
| 155 "name": "inlineStyle", |
| 156 "optional": true |
| 157 } |
| 158 ] |
| 159 } |
| 160 ], |
| 161 "domain": "CSS", |
| 162 "types": [ |
| 163 { |
| 164 "id": "CSSProperty", |
| 165 "properties": [ |
| 166 { |
| 167 "description": "The property name.", |
| 168 "name": "name", |
| 169 "type": "string" |
| 170 }, |
| 171 { |
| 172 "description": "The property value.", |
| 173 "name": "value", |
| 174 "type": "string" |
| 175 } |
| 176 ], |
| 177 "type": "object" |
| 178 }, |
| 179 { |
| 180 "description": "CSS style representation.", |
| 181 "id": "CSSStyle", |
| 182 "properties": [ |
| 183 { |
| 184 "description": "CSS properties in the style.", |
| 185 "items": { |
| 186 "$ref": "CSSProperty" |
| 187 }, |
| 188 "name": "cssProperties", |
| 189 "type": "array" |
| 190 }, |
| 191 { |
| 192 "description": "Frontend requires us to pass this. W
e just pass an empty array.", |
| 193 "items": { |
| 194 "type": "string" |
| 195 }, |
| 196 "name": "shorthandEntries", |
| 197 "type": "array" |
| 198 } |
| 199 ], |
| 200 "type": "object" |
| 201 } |
| 202 ] |
| 131 } | 203 } |
| 132 ], | 204 ], |
| 133 "version": { | 205 "version": { |
| 134 "major": "1", | 206 "major": "1", |
| 135 "minor": "0" | 207 "minor": "0" |
| 136 } | 208 } |
| 137 } | 209 } |
| OLD | NEW |