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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.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/profiler/ProfilesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js
index 2f42580662fc43f20aa308c7741b1b1a2c6a573e..42c0db6c9d7bd5ce3e63c62ad05cbcc8254186b1 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js
@@ -875,7 +875,7 @@ WebInspector.ProfilesPanel.prototype = {
if (!(target instanceof WebInspector.RemoteObject))
return;
- if (WebInspector.inspectorView.currentPanel() !== this)
+ if (!this.isShowing())
return;
var object = /** @type {!WebInspector.RemoteObject} */ (target);
@@ -900,7 +900,7 @@ WebInspector.ProfilesPanel.prototype = {
*/
function didReceiveHeapObjectId(viewName, error, result)
{
- if (WebInspector.inspectorView.currentPanel() !== this)
+ if (!this.isShowing())
return;
if (!error)
this.showObject(result, viewName);
@@ -1323,11 +1323,6 @@ WebInspector.ProfilesSidebarTreeElement.prototype = {
__proto__: TreeElement.prototype
}
-WebInspector.ProfilesPanel.show = function()
-{
- WebInspector.inspectorView.setCurrentPanel(WebInspector.ProfilesPanel._instance());
-}
-
/**
* @return {!WebInspector.ProfilesPanel}
*/

Powered by Google App Engine
This is Rietveld 408576698