Chromium Code Reviews| Index: Source/devtools/protocol.json |
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json |
| index 0e54f2b3da35b52a508ec9a0f4afe9fc43bd15f8..c7680ba143458bf21d2b70e0fc333aa01db5b746 100644 |
| --- a/Source/devtools/protocol.json |
| +++ b/Source/devtools/protocol.json |
| @@ -2671,15 +2671,25 @@ |
| "description": "Modifies the rule selector." |
| }, |
| { |
| + "name": "createViaInspectorStyleSheet", |
|
lushnikov
2014/02/28 11:55:59
I would rather name it "createNewStyleSheet" to av
|
| + "parameters": [ |
| + { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created."} |
| + ], |
| + "returns": [ |
| + { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the created \"via-inspector\" stylesheet." } |
| + ], |
| + "description": "Creates a new special \"via-inspector\" stylesheet in the frame with given <code>frameId</code>." |
| + }, |
| + { |
| "name": "addRule", |
| "parameters": [ |
| - { "name": "contextNodeId", "$ref": "DOM.NodeId" }, |
| + { "name": "styleSheetId", "$ref": "StyleSheetId" }, |
| { "name": "selector", "type": "string" } |
| ], |
| "returns": [ |
| { "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." } |
| ], |
| - "description": "Creates a new empty rule with the given <code>selector</code> in a special \"inspector\" stylesheet in the owner document of the context node." |
| + "description": "Creates a new empty rule with the given <code>selector</code> in a stylesheet with given <code>styleSheetId</code>." |
| }, |
| { |
| "name": "forcePseudoState", |