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

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

Issue 186833002: DevTools: customize text baseline and style in flame chard. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | « no previous file | Source/devtools/front_end/FlameChart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CPUProfileView.js
diff --git a/Source/devtools/front_end/CPUProfileView.js b/Source/devtools/front_end/CPUProfileView.js
index eae611873bd3f53ea7aa10aa8611cf719398cffb..bfe6878f9c3c58fdd7d4f0d790192ed11bc3717e 100644
--- a/Source/devtools/front_end/CPUProfileView.js
+++ b/Source/devtools/front_end/CPUProfileView.js
@@ -1067,6 +1067,22 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
},
/**
+ * @return {number}
+ */
+ textBaseline: function()
+ {
+ return 4;
+ },
+
+ /**
+ * @return {number}
+ */
+ textPadding: function()
+ {
+ return 2;
+ },
+
+ /**
* @param {number} startTime
* @param {number} endTime
* @return {?Array.<number>}
@@ -1337,4 +1353,13 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
{
return this._entryColors[entryIndex];
},
+
+ /**
+ * @param {number} entryIndex
+ * @return {!string}
+ */
+ textColor: function(entryIndex)
+ {
+ return "#333";
+ }
}
« no previous file with comments | « no previous file | Source/devtools/front_end/FlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698