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

Unified Diff: Source/devtools/protocol.json

Issue 22923010: DevTools: Add CSS.getPlatformFontsForNode in protocol.json (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 7 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: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 2f125f22678a4691030bd7d556060cdd7c67b798..0aa1a7a2e1a24276a9d72e02f9f93f51d172216e 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2464,6 +2464,15 @@
],
"description": "This object represents a Named Flow.",
"hidden": true
+ },
+ {
+ "id": "PlatformFontUsage",
+ "type": "object",
+ "properties": [
+ { "name": "familyName", "type": "string", "description": "Font's family name reported by platform."},
+ { "name": "glyphCount", "type": "number", "description": "Amount of glyphs that were rendered with this font."}
+ ],
+ "description": "Information about amount of glyphs that were rendered with given font."
}
],
"commands": [
@@ -2511,6 +2520,17 @@
"description": "Returns the computed style for a DOM node identified by <code>nodeId</code>."
},
{
+ "name": "getPlatformFontsForNode",
+ "parameters": [
+ { "name": "nodeId", "$ref": "DOM.NodeId" }
+ ],
+ "returns": [
+ { "name": "fonts", "type": "array", "items": { "$ref": "PlatformFontUsage"}, "description": "Usage statistics for every employed platform font." }
+ ],
+ "description": "Requests information about platform fonts which we used to render child TextNodes in the given node.",
+ "hidden": true
+ },
+ {
"name": "getAllStyleSheets",
"returns": [
{ "name": "headers", "type": "array", "items": { "$ref": "CSSStyleSheetHeader" }, "description": "Descriptor entries for all available stylesheets." }

Powered by Google App Engine
This is Rietveld 408576698