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

Unified Diff: components/ui_devtools/protocol.json

Issue 2548103002: Make bounds editable through the CSS sidepanel (Closed)
Patch Set: sadruls comments Created 4 years 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 | « ash/common/devtools/ash_devtools_css_agent.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui_devtools/protocol.json
diff --git a/components/ui_devtools/protocol.json b/components/ui_devtools/protocol.json
index a0cefe2254c2b1296864695b5dfaee27b599b2d5..e69dd13c3cc37f010a7ef8394fffb8f0990a5ded 100644
--- a/components/ui_devtools/protocol.json
+++ b/components/ui_devtools/protocol.json
@@ -224,6 +224,30 @@
"name": "inlineStyle",
"optional": true
}
+
+ ]
+ },
+ {
+ "description": "Applies specified style edits one after another in the given order.",
+ "name": "setStyleTexts",
+ "parameters": [
+ {
+ "items": {
+ "$ref": "StyleDeclarationEdit"
+ },
+ "type": "array",
+ "name": "edits"
+ }
+ ],
+ "returns": [
+ {
+ "items": {
+ "$ref": "CSSStyle"
+ },
+ "type": "array",
+ "name": "styles",
+ "description": "The resulting styles after modification."
+ }
]
}
],
@@ -246,6 +270,50 @@
"type": "string"
},
{
+ "description": "Text range within a resource. All numbers are zero-based.",
+ "type": "object",
+ "id": "SourceRange",
+ "properties": [
+ {
+ "type": "integer",
+ "name": "startLine",
+ "description": "Start line of range."
+ },
+ {
+ "type": "integer",
+ "name": "startColumn",
+ "description": "Start column of range (inclusive)."
+ },
+ {
+ "type": "integer",
+ "name": "endLine",
+ "description": "End line of range"
+ },
+ {
+ "type": "integer",
+ "name": "endColumn",
+ "description": "End column of range (exclusive)."
+ }
+ ]
+ },
+ {
+ "description": "A descriptor of operation to mutate style declaration text.",
+ "type": "object",
+ "id": "StyleDeclarationEdit",
+ "properties": [
+ {
+ "description": "The css style sheet identifier (same as NodeId for UI DevTools).",
+ "name": "styleSheetId",
+ "$ref": "StyleSheetId"
+ },
+ {
+ "type": "string",
+ "name": "text",
+ "description": "New style text."
+ }
+ ]
+ },
+ {
"id": "CSSProperty",
"properties": [
{
@@ -257,6 +325,12 @@
"description": "The property value.",
"name": "value",
"type": "string"
+ },
+ {
+ "name": "range",
+ "$ref": "SourceRange",
+ "optional": true,
+ "description": "The entire property range in the enclosing style declaration (if available)."
}
],
"type": "object"
@@ -286,6 +360,12 @@
},
"name": "shorthandEntries",
"type": "array"
+ },
+ {
+ "description": "Style declaration range in the enclosing stylesheet (if available).",
+ "optional": true,
+ "name": "range",
+ "$ref": "SourceRange"
}
],
"type": "object"
« no previous file with comments | « ash/common/devtools/ash_devtools_css_agent.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698