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

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

Issue 2633343003: Adds DOM.getFlatDocument which returns an array of nodes (Closed)
Patch Set: Created 3 years, 11 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 ee61904d0623f42ee37aed7cbec0ef15cc83a6b2..608bf091f7f4ba76dc2c92224748edfc8e10e6c8 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -2145,6 +2145,17 @@
"description": "Returns the root DOM node (and optionally the subtree) to the caller."
},
{
+ "name": "getFlatDocument",
pfeldman 2017/01/17 18:34:58 getFlattenedDocument
alex clarke (OOO till 29th) 2017/01/18 16:31:08 Done.
+ "parameters": [
+ { "name": "depth", "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.", "experimental": true },
+ { "name": "pierce", "type": "boolean", "optional": true, "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).", "experimental": true }
+ ],
+ "returns": [
+ { "name": "nodes", "type": "array", "items": { "$ref": "Node" }, "description": "Resulting node." }
+ ],
+ "description": "Returns the root DOM node (and optionally the subtree) to the caller."
+ },
+ {
"name": "collectClassNamesFromSubtree",
"parameters": [
{ "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." }

Powered by Google App Engine
This is Rietveld 408576698