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

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

Issue 2553043003: [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: rebased 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
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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 var toolbarContainerLeft = createElementWithClass('div', 'profiles-toolbar') ; 422 var toolbarContainerLeft = createElementWithClass('div', 'profiles-toolbar') ;
423 this.panelSidebarElement().insertBefore(toolbarContainerLeft, this.panelSide barElement().firstChild); 423 this.panelSidebarElement().insertBefore(toolbarContainerLeft, this.panelSide barElement().firstChild);
424 var toolbar = new UI.Toolbar('', toolbarContainerLeft); 424 var toolbar = new UI.Toolbar('', toolbarContainerLeft);
425 425
426 this._toggleRecordAction = 426 this._toggleRecordAction =
427 /** @type {!UI.Action }*/ (UI.actionRegistry.action('profiler.toggle-rec ording')); 427 /** @type {!UI.Action }*/ (UI.actionRegistry.action('profiler.toggle-rec ording'));
428 this._toggleRecordButton = UI.Toolbar.createActionButton(this._toggleRecordA ction); 428 this._toggleRecordButton = UI.Toolbar.createActionButton(this._toggleRecordA ction);
429 toolbar.appendToolbarItem(this._toggleRecordButton); 429 toolbar.appendToolbarItem(this._toggleRecordButton);
430 430
431 this.clearResultsButton = new UI.ToolbarButton(Common.UIString('Clear all pr ofiles'), 'largeicon-clear'); 431 this.clearResultsButton = new UI.ToolbarButton(Common.UIString('Clear all pr ofiles'), 'largeicon-clear');
432 this.clearResultsButton.addEventListener('click', this._reset, this); 432 this.clearResultsButton.addEventListener(UI.ToolbarButton.Events.Click, this ._reset, this);
433 toolbar.appendToolbarItem(this.clearResultsButton); 433 toolbar.appendToolbarItem(this.clearResultsButton);
434 toolbar.appendSeparator(); 434 toolbar.appendSeparator();
435 toolbar.appendToolbarItem( 435 toolbar.appendToolbarItem(
436 /** @type {!UI.ToolbarItem} */ (UI.Toolbar.createActionButtonForId('prof iler.collect-garbage'))); 436 /** @type {!UI.ToolbarItem} */ (UI.Toolbar.createActionButtonForId('prof iler.collect-garbage')));
437 437
438 this._profileTypeToolbar = new UI.Toolbar('', this._toolbarElement); 438 this._profileTypeToolbar = new UI.Toolbar('', this._toolbarElement);
439 this._profileViewToolbar = new UI.Toolbar('', this._toolbarElement); 439 this._profileViewToolbar = new UI.Toolbar('', this._toolbarElement);
440 440
441 this._profileGroups = {}; 441 this._profileGroups = {};
442 this._launcherView = new Profiler.MultiProfileLauncherView(this); 442 this._launcherView = new Profiler.MultiProfileLauncherView(this);
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 * @param {!UI.Context} context 1274 * @param {!UI.Context} context
1275 * @param {string} actionId 1275 * @param {string} actionId
1276 * @return {boolean} 1276 * @return {boolean}
1277 */ 1277 */
1278 handleAction(context, actionId) { 1278 handleAction(context, actionId) {
1279 for (var target of SDK.targetManager.targets()) 1279 for (var target of SDK.targetManager.targets())
1280 target.heapProfilerAgent().collectGarbage(); 1280 target.heapProfilerAgent().collectGarbage();
1281 return true; 1281 return true;
1282 } 1282 }
1283 }; 1283 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698