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

Side by Side Diff: Source/devtools/front_end/profiler/ProfilesPanel.js

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 }, 1179 },
1180 1180
1181 dispose: function() 1181 dispose: function()
1182 { 1182 {
1183 this.profile.removeEventListener(WebInspector.ProfileHeader.Events.Updat eStatus, this._updateStatus, this); 1183 this.profile.removeEventListener(WebInspector.ProfileHeader.Events.Updat eStatus, this._updateStatus, this);
1184 this.profile.removeEventListener(WebInspector.ProfileHeader.Events.Profi leReceived, this._onProfileReceived, this); 1184 this.profile.removeEventListener(WebInspector.ProfileHeader.Events.Profi leReceived, this._onProfileReceived, this);
1185 }, 1185 },
1186 1186
1187 onselect: function() 1187 onselect: function()
1188 { 1188 {
1189 WebInspector.panels.profiles.showProfile(this.profile); 1189 WebInspector.inspectorView.panel("profiles").showProfile(this.profile);
1190 }, 1190 },
1191 1191
1192 /** 1192 /**
1193 * @return {boolean} 1193 * @return {boolean}
1194 */ 1194 */
1195 ondelete: function() 1195 ondelete: function()
1196 { 1196 {
1197 this.profile.profileType().removeProfile(this.profile); 1197 this.profile.profileType().removeProfile(this.profile);
1198 return true; 1198 return true;
1199 }, 1199 },
(...skipping 30 matching lines...) Expand all
1230 */ 1230 */
1231 WebInspector.ProfileGroupSidebarTreeElement = function(title, subtitle) 1231 WebInspector.ProfileGroupSidebarTreeElement = function(title, subtitle)
1232 { 1232 {
1233 WebInspector.SidebarTreeElement.call(this, "profile-group-sidebar-tree-item" , title, subtitle, null, true); 1233 WebInspector.SidebarTreeElement.call(this, "profile-group-sidebar-tree-item" , title, subtitle, null, true);
1234 } 1234 }
1235 1235
1236 WebInspector.ProfileGroupSidebarTreeElement.prototype = { 1236 WebInspector.ProfileGroupSidebarTreeElement.prototype = {
1237 onselect: function() 1237 onselect: function()
1238 { 1238 {
1239 if (this.children.length > 0) 1239 if (this.children.length > 0)
1240 WebInspector.panels.profiles.showProfile(this.children[this.children .length - 1].profile); 1240 WebInspector.inspectorView.panel("profiles").showProfile(this.childr en[this.children.length - 1].profile);
1241 }, 1241 },
1242 1242
1243 __proto__: WebInspector.SidebarTreeElement.prototype 1243 __proto__: WebInspector.SidebarTreeElement.prototype
1244 } 1244 }
1245 1245
1246 /** 1246 /**
1247 * @constructor 1247 * @constructor
1248 * @extends {WebInspector.SidebarTreeElement} 1248 * @extends {WebInspector.SidebarTreeElement}
1249 * @param {!WebInspector.ProfilesPanel} panel 1249 * @param {!WebInspector.ProfilesPanel} panel
1250 */ 1250 */
(...skipping 29 matching lines...) Expand all
1280 importScript("HeapSnapshotCommon.js"); 1280 importScript("HeapSnapshotCommon.js");
1281 importScript("HeapSnapshotProxy.js"); 1281 importScript("HeapSnapshotProxy.js");
1282 importScript("HeapSnapshotDataGrids.js"); 1282 importScript("HeapSnapshotDataGrids.js");
1283 importScript("HeapSnapshotGridNodes.js"); 1283 importScript("HeapSnapshotGridNodes.js");
1284 importScript("HeapSnapshotView.js"); 1284 importScript("HeapSnapshotView.js");
1285 importScript("ProfileLauncherView.js"); 1285 importScript("ProfileLauncherView.js");
1286 importScript("CanvasProfileView.js"); 1286 importScript("CanvasProfileView.js");
1287 importScript("CanvasReplayStateView.js"); 1287 importScript("CanvasReplayStateView.js");
1288 1288
1289 WebInspector.ProfileTypeRegistry.instance = new WebInspector.ProfileTypeRegistry (); 1289 WebInspector.ProfileTypeRegistry.instance = new WebInspector.ProfileTypeRegistry ();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698