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

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

Issue 2581453002: [DevTools] Remove removeAllListeners method. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/common/Object.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 this._profileGroups = {}; 601 this._profileGroups = {};
602 this._updateToggleRecordAction(false); 602 this._updateToggleRecordAction(false);
603 this._launcherView.profileFinished(); 603 this._launcherView.profileFinished();
604 604
605 this._sidebarTree.element.classList.remove('some-expandable'); 605 this._sidebarTree.element.classList.remove('some-expandable');
606 606
607 this._launcherView.detach(); 607 this._launcherView.detach();
608 this.profileViews.removeChildren(); 608 this.profileViews.removeChildren();
609 this._profileViewToolbar.removeToolbarItems(); 609 this._profileViewToolbar.removeToolbarItems();
610 610
611 this.removeAllListeners();
612
613 this._profileViewToolbar.element.classList.remove('hidden'); 611 this._profileViewToolbar.element.classList.remove('hidden');
614 this.clearResultsButton.element.classList.remove('hidden'); 612 this.clearResultsButton.element.classList.remove('hidden');
615 this.profilesItemTreeElement.select(); 613 this.profilesItemTreeElement.select();
616 this._showLauncherView(); 614 this._showLauncherView();
617 } 615 }
618 616
619 _showLauncherView() { 617 _showLauncherView() {
620 this.closeVisibleView(); 618 this.closeVisibleView();
621 this._profileViewToolbar.removeToolbarItems(); 619 this._profileViewToolbar.removeToolbarItems();
622 this._launcherView.show(this.profileViews); 620 this._launcherView.show(this.profileViews);
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 * @param {string} actionId 1243 * @param {string} actionId
1246 * @return {boolean} 1244 * @return {boolean}
1247 */ 1245 */
1248 handleAction(context, actionId) { 1246 handleAction(context, actionId) {
1249 var panel = UI.context.flavor(Profiler.ProfilesPanel); 1247 var panel = UI.context.flavor(Profiler.ProfilesPanel);
1250 console.assert(panel && panel instanceof Profiler.ProfilesPanel); 1248 console.assert(panel && panel instanceof Profiler.ProfilesPanel);
1251 panel.toggleRecord(); 1249 panel.toggleRecord();
1252 return true; 1250 return true;
1253 } 1251 }
1254 }; 1252 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/common/Object.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698