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

Unified Diff: Source/devtools/front_end/CSSStyleModel.js

Issue 22875023: DevTools: Front-end for platform font inspection (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
« no previous file with comments | « Source/devtools/devtools.gyp ('k') | Source/devtools/front_end/ElementsPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CSSStyleModel.js
diff --git a/Source/devtools/front_end/CSSStyleModel.js b/Source/devtools/front_end/CSSStyleModel.js
index 80e52d2a05faf848689389f819b16d95fcc243b3..e6164ef2a7a2508092db065f4de15db55c9efb55 100644
--- a/Source/devtools/front_end/CSSStyleModel.js
+++ b/Source/devtools/front_end/CSSStyleModel.js
@@ -159,6 +159,22 @@ WebInspector.CSSStyleModel.prototype = {
},
/**
+ * @param {number} nodeId
+ * @param {function(?String, ?Array.<CSSAgent.PlatformFontUsage>)} callback
+ */
+ getPlatformFontsForNode: function(nodeId, callback)
+ {
+ function platformFontsCallback(error, cssFamilyName, fonts)
+ {
+ if (error)
+ callback(null, null);
+ else
+ callback(cssFamilyName, fonts);
+ }
+ CSSAgent.getPlatformFontsForNode(nodeId, platformFontsCallback);
+ },
+
+ /**
* @param {DOMAgent.NodeId} nodeId
* @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSSStyleDeclaration)} userCallback
*/
« no previous file with comments | « Source/devtools/devtools.gyp ('k') | Source/devtools/front_end/ElementsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698