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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/FlameChart.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 WebInspector.CPUFlameChartDataProvider.prototype = { 1060 WebInspector.CPUFlameChartDataProvider.prototype = {
1061 /** 1061 /**
1062 * @return {number} 1062 * @return {number}
1063 */ 1063 */
1064 barHeight: function() 1064 barHeight: function()
1065 { 1065 {
1066 return 15; 1066 return 15;
1067 }, 1067 },
1068 1068
1069 /** 1069 /**
1070 * @return {number}
1071 */
1072 textBaseline: function()
1073 {
1074 return 4;
1075 },
1076
1077 /**
1078 * @return {number}
1079 */
1080 textPadding: function()
1081 {
1082 return 2;
1083 },
1084
1085 /**
1070 * @param {number} startTime 1086 * @param {number} startTime
1071 * @param {number} endTime 1087 * @param {number} endTime
1072 * @return {?Array.<number>} 1088 * @return {?Array.<number>}
1073 */ 1089 */
1074 dividerOffsets: function(startTime, endTime) 1090 dividerOffsets: function(startTime, endTime)
1075 { 1091 {
1076 return null; 1092 return null;
1077 }, 1093 },
1078 1094
1079 /** 1095 /**
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 }, 1346 },
1331 1347
1332 /** 1348 /**
1333 * @param {number} entryIndex 1349 * @param {number} entryIndex
1334 * @return {!string} 1350 * @return {!string}
1335 */ 1351 */
1336 entryColor: function(entryIndex) 1352 entryColor: function(entryIndex)
1337 { 1353 {
1338 return this._entryColors[entryIndex]; 1354 return this._entryColors[entryIndex];
1339 }, 1355 },
1356
1357 /**
1358 * @param {number} entryIndex
1359 * @return {!string}
1360 */
1361 textColor: function(entryIndex)
1362 {
1363 return "#333";
1364 }
1340 } 1365 }
OLDNEW
« 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