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

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

Issue 388963004: DevTools: get rid of the global capabilities set. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 5 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 WebInspector.ProfileTypeRegistry = function() { 510 WebInspector.ProfileTypeRegistry = function() {
511 this._profileTypes = []; 511 this._profileTypes = [];
512 512
513 this.cpuProfileType = new WebInspector.CPUProfileType(); 513 this.cpuProfileType = new WebInspector.CPUProfileType();
514 this._addProfileType(this.cpuProfileType); 514 this._addProfileType(this.cpuProfileType);
515 this.heapSnapshotProfileType = new WebInspector.HeapSnapshotProfileType(); 515 this.heapSnapshotProfileType = new WebInspector.HeapSnapshotProfileType();
516 this._addProfileType(this.heapSnapshotProfileType); 516 this._addProfileType(this.heapSnapshotProfileType);
517 this.trackingHeapSnapshotProfileType = new WebInspector.TrackingHeapSnapshot ProfileType(); 517 this.trackingHeapSnapshotProfileType = new WebInspector.TrackingHeapSnapshot ProfileType();
518 this._addProfileType(this.trackingHeapSnapshotProfileType); 518 this._addProfileType(this.trackingHeapSnapshotProfileType);
519 519
520 if (Capabilities.isMainFrontend && WebInspector.experimentsSettings.canvasIn spection.isEnabled()) { 520 if (!WebInspector.isWorkerFrontend() && WebInspector.experimentsSettings.can vasInspection.isEnabled()) {
521 this.canvasProfileType = new WebInspector.CanvasProfileType(); 521 this.canvasProfileType = new WebInspector.CanvasProfileType();
522 this._addProfileType(this.canvasProfileType); 522 this._addProfileType(this.canvasProfileType);
523 } 523 }
524 } 524 }
525 525
526 WebInspector.ProfileTypeRegistry.prototype = { 526 WebInspector.ProfileTypeRegistry.prototype = {
527 /** 527 /**
528 * @param {!WebInspector.ProfileType} profileType 528 * @param {!WebInspector.ProfileType} profileType
529 */ 529 */
530 _addProfileType: function(profileType) 530 _addProfileType: function(profileType)
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 importScript("HeapSnapshotCommon.js"); 1363 importScript("HeapSnapshotCommon.js");
1364 importScript("HeapSnapshotProxy.js"); 1364 importScript("HeapSnapshotProxy.js");
1365 importScript("HeapSnapshotDataGrids.js"); 1365 importScript("HeapSnapshotDataGrids.js");
1366 importScript("HeapSnapshotGridNodes.js"); 1366 importScript("HeapSnapshotGridNodes.js");
1367 importScript("HeapSnapshotView.js"); 1367 importScript("HeapSnapshotView.js");
1368 importScript("ProfileLauncherView.js"); 1368 importScript("ProfileLauncherView.js");
1369 importScript("CanvasProfileView.js"); 1369 importScript("CanvasProfileView.js");
1370 importScript("CanvasReplayStateView.js"); 1370 importScript("CanvasReplayStateView.js");
1371 1371
1372 WebInspector.ProfileTypeRegistry.instance = new WebInspector.ProfileTypeRegistry (); 1372 WebInspector.ProfileTypeRegistry.instance = new WebInspector.ProfileTypeRegistry ();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/sdk/OverridesSupport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698