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

Unified Diff: Source/devtools/protocol.json

Issue 441873010: DevTools: [SSP] Implement adding new rule in user stylesheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compilation error Created 6 years, 4 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
« no previous file with comments | « Source/devtools/front_end/sidebarPane.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 2e56e9cb5bfe76e2bf69a173c456ba392d39096e..5949e6ca775b5e77aff015be90c246e48fa90bae 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2814,13 +2814,14 @@
{
"name": "addRule",
"parameters": [
- { "name": "styleSheetId", "$ref": "StyleSheetId" },
- { "name": "selector", "type": "string" }
+ { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier where a new rule should be inserted." },
+ { "name": "ruleText", "type": "string", "description": "The text of a new rule." },
+ { "name": "location", "$ref": "SourceRange", "description": "Text position of a new rule in the target style sheet." }
],
"returns": [
{ "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." }
],
- "description": "Creates a new empty rule with the given <code>selector</code> in a stylesheet with given <code>styleSheetId</code>."
+ "description": "Inserts a new rule with the given <code>ruleText</code> in a stylesheet with given <code>styleSheetId</code>, at the position specified by <code>location</code>."
},
{
"name": "forcePseudoState",
« no previous file with comments | « Source/devtools/front_end/sidebarPane.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698