OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 { | 1341 { |
1342 WebInspector.TabbedPane.call(this); | 1342 WebInspector.TabbedPane.call(this); |
1343 this.element.classList.add("timeline-details"); | 1343 this.element.classList.add("timeline-details"); |
1344 | 1344 |
1345 this._defaultDetailsWidget = new WebInspector.VBox(); | 1345 this._defaultDetailsWidget = new WebInspector.VBox(); |
1346 this._defaultDetailsWidget.element.classList.add("timeline-details-view"); | 1346 this._defaultDetailsWidget.element.classList.add("timeline-details-view"); |
1347 this._defaultDetailsContentElement = this._defaultDetailsWidget.element.crea
teChild("div", "timeline-details-view-body vbox"); | 1347 this._defaultDetailsContentElement = this._defaultDetailsWidget.element.crea
teChild("div", "timeline-details-view-body vbox"); |
1348 this.appendTab(WebInspector.TimelinePanel.DetailsTab.Details, WebInspector.U
IString("Summary"), this._defaultDetailsWidget); | 1348 this.appendTab(WebInspector.TimelinePanel.DetailsTab.Details, WebInspector.U
IString("Summary"), this._defaultDetailsWidget); |
1349 this.setPreferredTab(WebInspector.TimelinePanel.DetailsTab.Details); | 1349 this.setPreferredTab(WebInspector.TimelinePanel.DetailsTab.Details); |
1350 | 1350 |
1351 if (Runtime.experiments.isEnabled("timelineTreeView")) { | 1351 this._heavyTreeView = new WebInspector.TimelineTreeView(timelineModel); |
1352 this._heavyTreeView = new WebInspector.TimelineTreeView(timelineModel); | 1352 this.appendTab(WebInspector.TimelinePanel.DetailsTab.BottomUpTree, WebInspec
tor.UIString("Aggregated Details"), this._heavyTreeView); |
1353 this.appendTab(WebInspector.TimelinePanel.DetailsTab.BottomUpTree, WebIn
spector.UIString("Aggregated Details"), this._heavyTreeView); | |
1354 } | |
1355 | 1353 |
1356 this._staticTabs = new Set([ | 1354 this._staticTabs = new Set([ |
1357 WebInspector.TimelinePanel.DetailsTab.Details, | 1355 WebInspector.TimelinePanel.DetailsTab.Details, |
1358 WebInspector.TimelinePanel.DetailsTab.BottomUpTree | 1356 WebInspector.TimelinePanel.DetailsTab.BottomUpTree |
1359 ]); | 1357 ]); |
1360 | 1358 |
1361 this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._
tabSelected, this); | 1359 this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._
tabSelected, this); |
1362 } | 1360 } |
1363 | 1361 |
1364 WebInspector.TimelineDetailsView.prototype = { | 1362 WebInspector.TimelineDetailsView.prototype = { |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 /** | 1792 /** |
1795 * @override | 1793 * @override |
1796 * @param {string} value | 1794 * @param {string} value |
1797 */ | 1795 */ |
1798 handleQueryParam: function(value) | 1796 handleQueryParam: function(value) |
1799 { | 1797 { |
1800 WebInspector.TimelinePanel.show(); | 1798 WebInspector.TimelinePanel.show(); |
1801 WebInspector.TimelinePanel.instance()._loadFromURL(value); | 1799 WebInspector.TimelinePanel.instance()._loadFromURL(value); |
1802 } | 1800 } |
1803 } | 1801 } |
OLD | NEW |