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

Unified Diff: Source/devtools/protocol.json

Issue 172593003: DevTools: [CSS] Add CSS.editRangeInStyleSheetText() to the protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix glitch Created 6 years, 9 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 a416fc447e1c9073b6b8c7c98149cb8d92c31d2c..2109adf79ef4c03a1a08a51a70799909d4686abb 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2644,7 +2644,20 @@
{ "name": "styleSheetId", "$ref": "StyleSheetId" },
{ "name": "text", "type": "string" }
],
- "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
+ "description": "Sets the new stylesheet text. This will invalidate all existing <code>CSSStyleId</code>s and <code>CSSRuleId</code>s contained by this stylesheet."
+ },
+ {
+ "name": "editRangeInStyleSheetText",
+ "parameters": [
+ { "name": "styleSheetId", "$ref": "StyleSheetId" },
+ { "name": "range", "$ref": "SourceRange", "description": "Source range to be replaced in stylesheet text." },
+ { "name": "text", "type": "string", "description": "Text that will replace given range in the stylesheet text." }
+ ],
+ "returns": [
+ { "name": "rule", "$ref": "CSSRule", "optional": true, "description": "The resulting rule after the selector modification." },
+ { "name": "style", "$ref": "CSSStyle", "optional": true, "description": "The updated style which the editing was scoped to." }
+ ],
+ "description": "Replace stylesheet text range with a new text. This will invalidate all existing <code>CSSStyleId</code>s and <code>CSSRuleId</code>s contained by this stylesheet."
},
{
"name": "setPropertyText",

Powered by Google App Engine
This is Rietveld 408576698