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

Unified Diff: webkit/glue/devtools/js/heap_profiler_panel.js

Issue 334046: DevTools: fix colors of heap snapshot summary bar. (Closed)
Patch Set: Created 11 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/heap_profiler_panel.js
diff --git a/webkit/glue/devtools/js/heap_profiler_panel.js b/webkit/glue/devtools/js/heap_profiler_panel.js
index d802ed4e9eb1b15cc8dd043f46efd10b0d994ab9..666f17e76a6827bbfb614d389cf87e42cb3c8a1a 100644
--- a/webkit/glue/devtools/js/heap_profiler_panel.js
+++ b/webkit/glue/devtools/js/heap_profiler_panel.js
@@ -34,6 +34,12 @@ WebInspector.HeapSnapshotView = function(parent, profile)
this.showCountDeltaAsPercent = true;
this.showSizeDeltaAsPercent = true;
+ this.categories = {
+ code: new WebInspector.ResourceCategory("code", WebInspector.UIString("Code"), "rgb(255,121,0)"),
+ data: new WebInspector.ResourceCategory("data", WebInspector.UIString("Objects and Data"), "rgb(47,102,236)"),
+ other: new WebInspector.ResourceCategory("other", WebInspector.UIString("Other"), "rgb(186,186,186)")
+ };
+
this.summaryBar = new WebInspector.SummaryBar(this.categories);
this.summaryBar.element.id = "heap-snapshot-summary";
this.summaryBar.calculator = new WebInspector.HeapSummaryCalculator(profile.used);
@@ -72,11 +78,6 @@ WebInspector.HeapSnapshotView = function(parent, profile)
WebInspector.HeapSnapshotView.prototype = {
- get categories()
- {
- return {code: {title: WebInspector.UIString("Code"), color: {r: 255, g: 121, b: 0}}, data: {title: WebInspector.UIString("Objects and Data"), color: {r: 47, g: 102, b: 236}}, other: {title: WebInspector.UIString("Other"), color: {r: 186, g: 186, b: 186}}};
- },
-
get statusBarItems()
{
return [this.baseSelectElement, this.percentButton.element];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698