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

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2882193002: [devtools] Add DOMSnapshot domain for dom+layout+style snapshots. (Closed)
Patch Set: add domain to schema agent Created 3 years, 7 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: third_party/WebKit/Source/core/inspector/browser_protocol.json
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json
index 0060d55ef89f30e039effde25b5e314377b9e6e6..157d89b3b562af434580217ca90eb9617bec5962 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -3276,6 +3276,28 @@
}
]
},
+ {
+ "domain": "DOMSnapshot",
+ "experimental": true,
+ "description": "This domain facilitates obtaining document snapshots with DOM, layout, and style information.",
+ "dependencies": ["CSS", "DOM"],
+ "commands": [
+ {
+ "name": "getSnapshot",
+ "parameters": [
+ { "name": "computedStyleWhitelist", "type": "array", "items": { "type": "string" }, "description": "Whitelist of computed styles to return." },
+ { "name": "domDepth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." },
+ { "name": "pierce", "type": "boolean", "optional": true, "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false)." }
+ ],
+ "returns": [
+ { "name": "domNodes", "type": "array", "items": { "$ref": "DOM.Node" }, "description": "The nodes in the DOM tree." },
pfeldman 2017/05/15 18:42:18 When I was suggesting a separate domain, I meant t
Eric Seckler 2017/05/17 10:44:31 Ah, I see. I think the only thing that's not reall
+ { "name": "layoutTreeNodes", "type": "array", "items": { "$ref": "CSS.LayoutTreeNode" }, "description": "The nodes in the layout tree." },
+ { "name": "computedStyles", "type": "array", "items": { "$ref": "CSS.ComputedStyle" }, "description": "Whitelisted ComputedStyle properties for each node in the layout tree." }
+ ],
+ "description": "Returns a document snapshot, including the DOM tree of the root node up to the given depth in a flattened array, as well as layout and white-listed computed style information for the nodes. Requires that the DOM domain is enabled."
+ }
+ ]
+ },
{
"domain": "IO",
"description": "Input/Output operations for streams produced by DevTools.",

Powered by Google App Engine
This is Rietveld 408576698