Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1896)

Unified Diff: Source/devtools/protocol.json

Issue 177963004: DevTools: Split creating inspector stylesheet and adding a new rule into stylesheet in protocol. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 0e54f2b3da35b52a508ec9a0f4afe9fc43bd15f8..46802390fa4943f8486d03f1dff93c6082edfe94 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2671,15 +2671,25 @@
"description": "Modifies the rule selector."
},
{
+ "name": "createStyleSheet",
+ "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",

Powered by Google App Engine
This is Rietveld 408576698