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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: made layers panel closeable. Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
index b1aaaf7c288103d53a95c088e362d60b376de11e..5b565b5c4c4f95783b92f928e450410d93a8791d 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -1791,11 +1791,6 @@ WebInspector.TimelinePanel.StatusPane.prototype = {
__proto__: WebInspector.VBox.prototype
}
-WebInspector.TimelinePanel.show = function()
-{
- WebInspector.inspectorView.setCurrentPanel(WebInspector.TimelinePanel.instance());
-}
-
/**
* @return {!WebInspector.TimelinePanel}
*/
@@ -1819,8 +1814,9 @@ WebInspector.LoadTimelineHandler.prototype = {
*/
handleQueryParam: function(value)
{
- WebInspector.TimelinePanel.show();
- WebInspector.TimelinePanel.instance()._loadFromURL(window.decodeURIComponent(value));
+ WebInspector.viewManager.showView("timeline").then(() => {
+ WebInspector.TimelinePanel.instance()._loadFromURL(window.decodeURIComponent(value));
+ });
}
}

Powered by Google App Engine
This is Rietveld 408576698