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

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

Issue 2296323002: DevTools: Add features to collect classnames from Stylesheets and DOM (Closed)
Patch Set: DevTools: Add features to collect classnames from Stylesheets and DOM Created 4 years, 3 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 0d879762aa2bb74ed6a16f4dfb50de5e50f2cc24..a9b266f910ddea98cf7b0ec069cafb50f754bf6a 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -2163,6 +2163,17 @@
"description": "Returns the root DOM node to the caller."
},
{
+ "name": "collectClassNamesFromSubtree",
pfeldman 2016/09/09 15:55:23 What about node ids? Will that be a separate metho
+ "parameters": [
+ { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." }
+ ],
+ "returns": [
+ {"name": "classNames", "type": "array", "items": { "type": "string" }, "description": "Class name list." }
+ ],
+ "description": "Collects class names for the node with given id and all of it's child nodes.",
+ "experimental": true
+ },
+ {
"name": "requestChildNodes",
"parameters": [
{ "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." },
@@ -2942,6 +2953,17 @@
"description": "Returns the current textual content and the URL for a stylesheet."
},
{
+ "name": "collectClassNames",
+ "parameters": [
+ { "name": "styleSheetId", "$ref": "StyleSheetId" }
+ ],
+ "returns": [
+ {"name": "classNames", "type": "array", "items": { "type": "string" }, "description": "Class name list." }
+ ],
+ "description": "Returns all class names from specified stylesheet.",
+ "experimental": true
+ },
+ {
"name": "setStyleSheetText",
"parameters": [
{ "name": "styleSheetId", "$ref": "StyleSheetId" },

Powered by Google App Engine
This is Rietveld 408576698