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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js

Issue 2879943003: DevTools: render product badges behind the setting. (Closed)
Patch Set: removed module from the list. Created 3 years, 7 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
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 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 }; 1727 };
1728 } 1728 }
1729 1729
1730 /** 1730 /**
1731 * @param {string} id 1731 * @param {string} id
1732 * @return {string} 1732 * @return {string}
1733 */ 1733 */
1734 static colorForId(id) { 1734 static colorForId(id) {
1735 if (!Timeline.TimelineUIUtils.colorForId._colorGenerator) { 1735 if (!Timeline.TimelineUIUtils.colorForId._colorGenerator) {
1736 Timeline.TimelineUIUtils.colorForId._colorGenerator = 1736 Timeline.TimelineUIUtils.colorForId._colorGenerator =
1737 new PerfUI.FlameChart.ColorGenerator({min: 30, max: 330}, {min: 50, ma x: 80, count: 3}, 85); 1737 new Common.Color.Generator({min: 30, max: 330}, {min: 50, max: 80, cou nt: 3}, 85);
1738 Timeline.TimelineUIUtils.colorForId._colorGenerator.setColorForID('', '#f2 ecdc'); 1738 Timeline.TimelineUIUtils.colorForId._colorGenerator.setColorForID('', '#f2 ecdc');
1739 } 1739 }
1740 return Timeline.TimelineUIUtils.colorForId._colorGenerator.colorForID(id); 1740 return Timeline.TimelineUIUtils.colorForId._colorGenerator.colorForID(id);
1741 } 1741 }
1742 1742
1743 /** 1743 /**
1744 * @param {!SDK.TracingModel.Event} event 1744 * @param {!SDK.TracingModel.Event} event
1745 * @param {string=} warningType 1745 * @param {string=} warningType
1746 * @return {?Element} 1746 * @return {?Element}
1747 */ 1747 */
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
2270 * @param {string=} warningType 2270 * @param {string=} warningType
2271 */ 2271 */
2272 appendWarningRow(event, warningType) { 2272 appendWarningRow(event, warningType) {
2273 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType); 2273 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType);
2274 if (warning) 2274 if (warning)
2275 this.appendElementRow(Common.UIString('Warning'), warning, true); 2275 this.appendElementRow(Common.UIString('Warning'), warning, true);
2276 } 2276 }
2277 }; 2277 };
2278 2278
2279 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo wnCache'); 2279 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo wnCache');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698