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

Side by Side Diff: Source/devtools/front_end/TimelineUIUtils.js

Issue 187473005: DevTools: remove color generator from timeline flame chart. (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 | « Source/devtools/front_end/TimelineFlameChart.js ('k') | no next file » | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 31
32 /** 32 /**
33 */ 33 */
34 WebInspector.TimelineUIUtils = function() { } 34 WebInspector.TimelineUIUtils = function() { }
35 35
36 WebInspector.TimelineUIUtils.categories = function() 36 WebInspector.TimelineUIUtils.categories = function()
37 { 37 {
38 if (WebInspector.TimelineUIUtils._categories) 38 if (WebInspector.TimelineUIUtils._categories)
39 return WebInspector.TimelineUIUtils._categories; 39 return WebInspector.TimelineUIUtils._categories;
40 WebInspector.TimelineUIUtils._categories = { 40 WebInspector.TimelineUIUtils._categories = {
41 loading: new WebInspector.TimelineCategory("loading", WebInspector.UIStr ing("Loading"), 0, "#5A8BCC", "#8EB6E9", "#70A2E3"), 41 loading: new WebInspector.TimelineCategory("loading", WebInspector.UIStr ing("Loading"), 0, "hsl(214, 53%, 58%)", "hsl(214, 67%, 90%)", "hsl(214, 67%, 74 %)", "hsl(214, 67%, 66%)"),
42 scripting: new WebInspector.TimelineCategory("scripting", WebInspector.U IString("Scripting"), 1, "#D8AA34", "#F3D07A", "#F1C453"), 42 scripting: new WebInspector.TimelineCategory("scripting", WebInspector.U IString("Scripting"), 1, "hsl(43, 68%, 53%)", "hsl(43, 83%, 90%)", "hsl(43, 83%, 72%)", "hsl(43, 83%, 64%) "),
43 rendering: new WebInspector.TimelineCategory("rendering", WebInspector.U IString("Rendering"), 2, "#8266CC", "#AF9AEB", "#9A7EE6"), 43 rendering: new WebInspector.TimelineCategory("rendering", WebInspector.U IString("Rendering"), 2, "hsl(256, 50%, 60%)", "hsl(256, 67%, 90%)", "hsl(256, 6 7%, 76%)", "hsl(256, 67%, 70%)"),
44 painting: new WebInspector.TimelineCategory("painting", WebInspector.UIS tring("Painting"), 2, "#5FA050", "#8DC286", "#71B363"), 44 painting: new WebInspector.TimelineCategory("painting", WebInspector.UIS tring("Painting"), 2, "hsl(109, 33%, 47%)", "hsl(109, 33%, 90%)", "hsl(109, 33%, 64%)", "hsl(109, 33%, 55%)"),
45 other: new WebInspector.TimelineCategory("other", WebInspector.UIString( "Other"), -1, "#BBBBBB", "#DDDDDD", "#DDDDDD"), 45 other: new WebInspector.TimelineCategory("other", WebInspector.UIString( "Other"), -1, "hsl(0, 0%, 73%)", "hsl(0, 0%, 90%)", "hsl(0, 0%, 87%)", "hsl(0, 0 %, 79%)"),
46 idle: new WebInspector.TimelineCategory("idle", WebInspector.UIString("I dle"), -1, "#DDDDDD", "#FFFFFF", "#FFFFFF") 46 idle: new WebInspector.TimelineCategory("idle", WebInspector.UIString("I dle"), -1, "hsl(0, 0%, 87%)", "hsl(0, 100%, 100%)", "hsl(0, 100%, 100%)", "hsl(0 , 100%, 100%)")
47 }; 47 };
48 return WebInspector.TimelineUIUtils._categories; 48 return WebInspector.TimelineUIUtils._categories;
49 }; 49 };
50 50
51 /** 51 /**
52 * @return {!Object.<string, !{title: string, category: !WebInspector.TimelineCa tegory}>} 52 * @return {!Object.<string, !{title: string, category: !WebInspector.TimelineCa tegory}>}
53 */ 53 */
54 WebInspector.TimelineUIUtils._initRecordStyles = function() 54 WebInspector.TimelineUIUtils._initRecordStyles = function()
55 { 55 {
56 if (WebInspector.TimelineUIUtils._recordStylesMap) 56 if (WebInspector.TimelineUIUtils._recordStylesMap)
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 } 797 }
798 } 798 }
799 799
800 /** 800 /**
801 * @constructor 801 * @constructor
802 * @extends {WebInspector.Object} 802 * @extends {WebInspector.Object}
803 * @param {string} name 803 * @param {string} name
804 * @param {string} title 804 * @param {string} title
805 * @param {number} overviewStripGroupIndex 805 * @param {number} overviewStripGroupIndex
806 * @param {string} borderColor 806 * @param {string} borderColor
807 * @param {string} backgroundColor
807 * @param {string} fillColorStop0 808 * @param {string} fillColorStop0
808 * @param {string} fillColorStop1 809 * @param {string} fillColorStop1
809 */ 810 */
810 WebInspector.TimelineCategory = function(name, title, overviewStripGroupIndex, b orderColor, fillColorStop0, fillColorStop1) 811 WebInspector.TimelineCategory = function(name, title, overviewStripGroupIndex, b orderColor, backgroundColor, fillColorStop0, fillColorStop1)
811 { 812 {
812 this.name = name; 813 this.name = name;
813 this.title = title; 814 this.title = title;
814 this.overviewStripGroupIndex = overviewStripGroupIndex; 815 this.overviewStripGroupIndex = overviewStripGroupIndex;
815 this.borderColor = borderColor; 816 this.borderColor = borderColor;
817 this.backgroundColor = backgroundColor;
816 this.fillColorStop0 = fillColorStop0; 818 this.fillColorStop0 = fillColorStop0;
817 this.fillColorStop1 = fillColorStop1; 819 this.fillColorStop1 = fillColorStop1;
818 this.hidden = false; 820 this.hidden = false;
819 } 821 }
820 822
821 WebInspector.TimelineCategory.Events = { 823 WebInspector.TimelineCategory.Events = {
822 VisibilityChanged: "VisibilityChanged" 824 VisibilityChanged: "VisibilityChanged"
823 }; 825 };
824 826
825 WebInspector.TimelineCategory.prototype = { 827 WebInspector.TimelineCategory.prototype = {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 for (var i = 0; i < stackTrace.length; ++i) { 975 for (var i = 0; i < stackTrace.length; ++i) {
974 var stackFrame = stackTrace[i]; 976 var stackFrame = stackTrace[i];
975 var row = stackTraceElement.createChild("div"); 977 var row = stackTraceElement.createChild("div");
976 row.createTextChild(stackFrame.functionName || WebInspector.UIString ("(anonymous function)")); 978 row.createTextChild(stackFrame.functionName || WebInspector.UIString ("(anonymous function)"));
977 row.createTextChild(" @ "); 979 row.createTextChild(" @ ");
978 var urlElement = this._linkifier.linkifyLocation(stackFrame.url, sta ckFrame.lineNumber - 1); 980 var urlElement = this._linkifier.linkifyLocation(stackFrame.url, sta ckFrame.lineNumber - 1);
979 row.appendChild(urlElement); 981 row.appendChild(urlElement);
980 } 982 }
981 } 983 }
982 } 984 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/TimelineFlameChart.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698