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

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

Issue 2892333002: DevTools: Render third-party badges in timeline tree view (Closed)
Patch Set: . Created 3 years, 6 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 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Timeline.TimelineDetailsView = class extends UI.VBox { 8 Timeline.TimelineDetailsView = class extends UI.VBox {
9 /** 9 /**
10 * @param {!Array<!TimelineModel.TimelineModelFilter>} filters 10 * @param {!Array<!TimelineModel.TimelineModelFilter>} filters
11 * @param {!Timeline.TimelineModeViewDelegate} delegate 11 * @param {!Timeline.TimelineModeViewDelegate} delegate
12 */ 12 */
13 constructor(filters, delegate) { 13 constructor(filters, delegate) {
14 super(); 14 super();
15 this.element.classList.add('timeline-details'); 15 this.element.classList.add('timeline-details');
16 16
17 this._detailsLinkifier = new Components.Linkifier(); 17 this._detailsLinkifier = new Components.Linkifier();
18 this._badgePool = new ProductRegistry.BadgePool(); 18 this._badgePool = new ProductRegistry.BadgePool();
19 this._badgePool.setShowTitles(true);
19 20
20 this._tabbedPane = new UI.TabbedPane(); 21 this._tabbedPane = new UI.TabbedPane();
21 this._tabbedPane.show(this.element); 22 this._tabbedPane.show(this.element);
22 23
23 const tabIds = Timeline.TimelineDetailsView.Tab; 24 const tabIds = Timeline.TimelineDetailsView.Tab;
24 25
25 this._defaultDetailsWidget = new UI.VBox(); 26 this._defaultDetailsWidget = new UI.VBox();
26 this._defaultDetailsWidget.element.classList.add('timeline-details-view'); 27 this._defaultDetailsWidget.element.classList.add('timeline-details-view');
27 this._defaultDetailsContentElement = 28 this._defaultDetailsContentElement =
28 this._defaultDetailsWidget.element.createChild('div', 'timeline-details- view-body vbox'); 29 this._defaultDetailsWidget.element.createChild('div', 'timeline-details- view-body vbox');
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 * @enum {string} 234 * @enum {string}
234 */ 235 */
235 Timeline.TimelineDetailsView.Tab = { 236 Timeline.TimelineDetailsView.Tab = {
236 Details: 'Details', 237 Details: 'Details',
237 EventLog: 'EventLog', 238 EventLog: 'EventLog',
238 CallTree: 'CallTree', 239 CallTree: 'CallTree',
239 BottomUp: 'BottomUp', 240 BottomUp: 'BottomUp',
240 PaintProfiler: 'PaintProfiler', 241 PaintProfiler: 'PaintProfiler',
241 LayerViewer: 'LayerViewer' 242 LayerViewer: 'LayerViewer'
242 }; 243 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698