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

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

Issue 2455943003: Backend for css rule tracking (Closed)
Patch Set: Created 4 years, 2 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 502a1da736bf9e3247eb4e30da4819b1f34e16f0..f3aee667e7b65abdf3eb385b37cd18a1aad58f68 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -2760,7 +2760,8 @@
{ "name": "selectorList", "$ref": "SelectorList", "description": "Rule selector data." },
{ "name": "origin", "$ref": "StyleSheetOrigin", "description": "Parent stylesheet's origin."},
{ "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." },
- { "name": "media", "type": "array", "items": { "$ref": "CSSMedia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." }
+ { "name": "media", "type": "array", "items": { "$ref": "CSSMedia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." },
+ { "name": "status", "type": "boolean", "optional": true, "description": "This flag is true if the rule was used." }
caseq 2016/10/27 20:59:56 "description": "Indicates whether the rule was act
valih 2016/10/27 21:41:17 Done.
],
"description": "CSS rule representation."
},
@@ -3134,6 +3135,20 @@
],
"description": "For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style.",
"experimental": true
+ },
+ {
+ "name": "setSelectorRecording",
+ "parameters": [
+ { "name": "enable", "type": "boolean" }
+ ],
+ "description": "Enables the selector recording."
+ },
+ {
+ "name": "getRuleList",
+ "returns": [
+ { "name": "usedCSSRules", "type": "array", "items": { "$ref": "CSSRule" } }
+ ],
+ "description": "The list of the rules that were used."
caseq 2016/10/27 20:59:55 "The list of rules with an indication of whether t
valih 2016/10/27 21:41:17 Done.
}
],
"events": [

Powered by Google App Engine
This is Rietveld 408576698