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

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: Created 4 years, 4 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..13905e5dab42ebea6be07b239e7ef75a98491a5a 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -2163,6 +2163,16 @@
"description": "Returns the root DOM node to the caller."
},
{
+ "name": "collectClassNames",
+ "parameters": [
+ { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." }
+ ],
+ "returns": [
+ {"name": "classNames", "type": "array", "items": { "type": "string"}, "optional": true, "description": "Class name list." }
+ ],
+ "description": "Collects class names for the node with given id and all of it's child nodes."
+ },
+ {
"name": "requestChildNodes",
"parameters": [
{ "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." },
@@ -2942,6 +2952,16 @@
"description": "Returns the current textual content and the URL for a stylesheet."
},
{
+ "name": "collectClassNamesFromStyleSheet",
+ "parameters": [
+ { "name": "styleSheetId", "$ref": "StyleSheetId" }
+ ],
+ "returns": [
+ {"name": "classNames", "type": "array", "items": { "type": "string"}, "optional": true, "description": "Class name list." }
+ ],
+ "description": "Returns all css class names for specified stylesheet."
+ },
+ {
"name": "setStyleSheetText",
"parameters": [
{ "name": "styleSheetId", "$ref": "StyleSheetId" },

Powered by Google App Engine
This is Rietveld 408576698