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 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2664 "parameters": [ | 2664 "parameters": [ |
2665 { "name": "ruleId", "$ref": "CSSRuleId" }, | 2665 { "name": "ruleId", "$ref": "CSSRuleId" }, |
2666 { "name": "selector", "type": "string" } | 2666 { "name": "selector", "type": "string" } |
2667 ], | 2667 ], |
2668 "returns": [ | 2668 "returns": [ |
2669 { "name": "rule", "$ref": "CSSRule", "description": "The res
ulting rule after the selector modification." } | 2669 { "name": "rule", "$ref": "CSSRule", "description": "The res
ulting rule after the selector modification." } |
2670 ], | 2670 ], |
2671 "description": "Modifies the rule selector." | 2671 "description": "Modifies the rule selector." |
2672 }, | 2672 }, |
2673 { | 2673 { |
| 2674 "name": "createStyleSheet", |
| 2675 "parameters": [ |
| 2676 { "name": "frameId", "$ref": "Page.FrameId", "description":
"Identifier of the frame where \"via-inspector\" stylesheet should be created."} |
| 2677 ], |
| 2678 "returns": [ |
| 2679 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti
on": "Identifier of the created \"via-inspector\" stylesheet." } |
| 2680 ], |
| 2681 "description": "Creates a new special \"via-inspector\" styleshe
et in the frame with given <code>frameId</code>." |
| 2682 }, |
| 2683 { |
2674 "name": "addRule", | 2684 "name": "addRule", |
2675 "parameters": [ | 2685 "parameters": [ |
2676 { "name": "contextNodeId", "$ref": "DOM.NodeId" }, | 2686 { "name": "styleSheetId", "$ref": "StyleSheetId" }, |
2677 { "name": "selector", "type": "string" } | 2687 { "name": "selector", "type": "string" } |
2678 ], | 2688 ], |
2679 "returns": [ | 2689 "returns": [ |
2680 { "name": "rule", "$ref": "CSSRule", "description": "The new
ly created rule." } | 2690 { "name": "rule", "$ref": "CSSRule", "description": "The new
ly created rule." } |
2681 ], | 2691 ], |
2682 "description": "Creates a new empty rule with the given <code>se
lector</code> in a special \"inspector\" stylesheet in the owner document of the
context node." | 2692 "description": "Creates a new empty rule with the given <code>se
lector</code> in a stylesheet with given <code>styleSheetId</code>." |
2683 }, | 2693 }, |
2684 { | 2694 { |
2685 "name": "forcePseudoState", | 2695 "name": "forcePseudoState", |
2686 "parameters": [ | 2696 "parameters": [ |
2687 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th
e element id for which to force the pseudo state." }, | 2697 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th
e element id for which to force the pseudo state." }, |
2688 { "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." } | 2698 { "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." } |
2689 ], | 2699 ], |
2690 "description": "Ensures that the given node will have specified
pseudo-classes whenever its style is computed by the browser." | 2700 "description": "Ensures that the given node will have specified
pseudo-classes whenever its style is computed by the browser." |
2691 } | 2701 } |
2692 ], | 2702 ], |
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4044 { | 4054 { |
4045 "name": "dataAvailable", | 4055 "name": "dataAvailable", |
4046 "parameters": [ | 4056 "parameters": [ |
4047 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } | 4057 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } |
4048 ], | 4058 ], |
4049 "handlers": ["browser", "frontend"] | 4059 "handlers": ["browser", "frontend"] |
4050 } | 4060 } |
4051 ] | 4061 ] |
4052 }] | 4062 }] |
4053 } | 4063 } |
OLD | NEW |