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

Unified Diff: third_party/WebKit/Source/devtools/protocol.json

Issue 1694433003: DevTools: [CSS] Add CSS.setMultipleStyleTexts command to CSS domain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: %zu is not cross-platform - do not use. Created 4 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleModel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/protocol.json
diff --git a/third_party/WebKit/Source/devtools/protocol.json b/third_party/WebKit/Source/devtools/protocol.json
index 2bfc10dc2f8def41d1936c45c1d0bcbed1261463..2461e4ec041d164949b966b884def87fedcf2706 100644
--- a/third_party/WebKit/Source/devtools/protocol.json
+++ b/third_party/WebKit/Source/devtools/protocol.json
@@ -3174,6 +3174,16 @@
{ "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." }
],
"description": "CSS keyframe rule representation."
+ },
+ {
+ "id": "StyleDeclarationEdit",
+ "type": "object",
+ "properties": [
+ { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier." },
+ { "name": "range", "$ref": "SourceRange", "description": "The range of the style text in the enclosing stylesheet." },
+ { "name": "text", "type": "string", "description": "New style text."}
+ ],
+ "description": "A descriptor of operation to mutate style declaration text."
}
],
"commands": [
@@ -3279,16 +3289,14 @@
"description": "Modifies the keyframe rule key text."
},
{
- "name": "setStyleText",
+ "name": "setStyleTexts",
"parameters": [
- { "name": "styleSheetId", "$ref": "StyleSheetId" },
- { "name": "range", "$ref": "SourceRange" },
- { "name": "text", "type": "string" }
+ { "name": "edits", "type": "array", "items": { "$ref": "StyleDeclarationEdit" }}
],
"returns": [
- { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the selector modification." }
+ { "name": "styles", "type": "array", "items": { "$ref": "CSSStyle" }, "description": "The resulting styles after modification." }
],
- "description": "Modifies the style text."
+ "description": "Applies specified style edits one after another in the given order."
},
{
"name": "setMediaText",
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698