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

Unified Diff: components/ui_devtools/protocol.json

Issue 2486543003: Add CSS agent for various window/widget/view attributes in devtools (Closed)
Patch Set: sadruls comments Created 4 years, 1 month 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 | « components/ui_devtools/BUILD.gn ('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 4f843e1f61b6e0710c6e0f51a2c28cc4de74e7cf..3ccbc2de9b491054fb76aa110ba9438a239cd7a5 100644
--- a/components/ui_devtools/protocol.json
+++ b/components/ui_devtools/protocol.json
@@ -128,6 +128,78 @@
"type": "object"
}
]
+ },
+ {
+ "commands": [
+ {
+ "description": "Enables CSS agent for the given page.",
+ "name": "enable"
+ },
+ {
+ "description": "Disables CSS agent for the given page.",
+ "name": "disable"
+ },
+ {
+ "description": "Returns requested styles for a DOM node identified by <code>nodeId</code>.",
+ "name": "getMatchedStylesForNode",
+ "parameters": [
+ {
+ "$ref": "DOM.NodeId",
+ "name": "nodeId"
+ }
+ ],
+ "returns": [
+ {
+ "$ref": "CSSStyle",
+ "description": "Inline style for the specified DOM node.",
+ "name": "inlineStyle",
+ "optional": true
+ }
+ ]
+ }
+ ],
+ "domain": "CSS",
+ "types": [
+ {
+ "id": "CSSProperty",
+ "properties": [
+ {
+ "description": "The property name.",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "description": "The property value.",
+ "name": "value",
+ "type": "string"
+ }
+ ],
+ "type": "object"
+ },
+ {
+ "description": "CSS style representation.",
+ "id": "CSSStyle",
+ "properties": [
+ {
+ "description": "CSS properties in the style.",
+ "items": {
+ "$ref": "CSSProperty"
+ },
+ "name": "cssProperties",
+ "type": "array"
+ },
+ {
+ "description": "Frontend requires us to pass this. We just pass an empty array.",
+ "items": {
+ "type": "string"
+ },
+ "name": "shorthandEntries",
+ "type": "array"
+ }
+ ],
+ "type": "object"
+ }
+ ]
}
],
"version": {
« no previous file with comments | « components/ui_devtools/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698