OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Inspector", | 4 "domain": "Inspector", |
5 "hidden": true, | 5 "hidden": true, |
6 "types": [], | 6 "types": [], |
7 "commands": [ | 7 "commands": [ |
8 { | 8 { |
9 "name": "enable", | 9 "name": "enable", |
10 "description": "Enables inspector domain notifications." | 10 "description": "Enables inspector domain notifications." |
(...skipping 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2807 { "name": "frameId", "$ref": "Page.FrameId", "description":
"Identifier of the frame where \"via-inspector\" stylesheet should be created."} | 2807 { "name": "frameId", "$ref": "Page.FrameId", "description":
"Identifier of the frame where \"via-inspector\" stylesheet should be created."} |
2808 ], | 2808 ], |
2809 "returns": [ | 2809 "returns": [ |
2810 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti
on": "Identifier of the created \"via-inspector\" stylesheet." } | 2810 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti
on": "Identifier of the created \"via-inspector\" stylesheet." } |
2811 ], | 2811 ], |
2812 "description": "Creates a new special \"via-inspector\" styleshe
et in the frame with given <code>frameId</code>." | 2812 "description": "Creates a new special \"via-inspector\" styleshe
et in the frame with given <code>frameId</code>." |
2813 }, | 2813 }, |
2814 { | 2814 { |
2815 "name": "addRule", | 2815 "name": "addRule", |
2816 "parameters": [ | 2816 "parameters": [ |
2817 { "name": "styleSheetId", "$ref": "StyleSheetId" }, | 2817 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti
on": "The css style sheet identifier where a new rule should be inserted." }, |
2818 { "name": "selector", "type": "string" } | 2818 { "name": "ruleText", "type": "string", "description": "The
text of a new rule." }, |
| 2819 { "name": "location", "$ref": "SourceRange", "description":
"Text position of a new rule in the target style sheet." } |
2819 ], | 2820 ], |
2820 "returns": [ | 2821 "returns": [ |
2821 { "name": "rule", "$ref": "CSSRule", "description": "The new
ly created rule." } | 2822 { "name": "rule", "$ref": "CSSRule", "description": "The new
ly created rule." } |
2822 ], | 2823 ], |
2823 "description": "Creates a new empty rule with the given <code>se
lector</code> in a stylesheet with given <code>styleSheetId</code>." | 2824 "description": "Inserts a new rule with the given <code>ruleText
</code> in a stylesheet with given <code>styleSheetId</code>, at the position sp
ecified by <code>location</code>." |
2824 }, | 2825 }, |
2825 { | 2826 { |
2826 "name": "forcePseudoState", | 2827 "name": "forcePseudoState", |
2827 "parameters": [ | 2828 "parameters": [ |
2828 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th
e element id for which to force the pseudo state." }, | 2829 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th
e element id for which to force the pseudo state." }, |
2829 { "name": "forcedPseudoClasses", "type": "array", "items": {
"type": "string", "enum": ["active", "focus", "hover", "visited"] }, "descripti
on": "Element pseudo classes to force when computing the element's style." } | 2830 { "name": "forcedPseudoClasses", "type": "array", "items": {
"type": "string", "enum": ["active", "focus", "hover", "visited"] }, "descripti
on": "Element pseudo classes to force when computing the element's style." } |
2830 ], | 2831 ], |
2831 "description": "Ensures that the given node will have specified
pseudo-classes whenever its style is computed by the browser." | 2832 "description": "Ensures that the given node will have specified
pseudo-classes whenever its style is computed by the browser." |
2832 }, | 2833 }, |
2833 { | 2834 { |
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4294 { | 4295 { |
4295 "name": "dataAvailable", | 4296 "name": "dataAvailable", |
4296 "parameters": [ | 4297 "parameters": [ |
4297 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } | 4298 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } |
4298 ], | 4299 ], |
4299 "handlers": ["browser", "frontend"] | 4300 "handlers": ["browser", "frontend"] |
4300 } | 4301 } |
4301 ] | 4302 ] |
4302 }] | 4303 }] |
4303 } | 4304 } |
OLD | NEW |