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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotView.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 1384
1385 _setupWorker() { 1385 _setupWorker() {
1386 /** 1386 /**
1387 * @this {Profiler.HeapProfileHeader} 1387 * @this {Profiler.HeapProfileHeader}
1388 */ 1388 */
1389 function setProfileWait(event) { 1389 function setProfileWait(event) {
1390 this.updateStatus(null, event.data); 1390 this.updateStatus(null, event.data);
1391 } 1391 }
1392 console.assert(!this._workerProxy, 'HeapSnapshotWorkerProxy already exists') ; 1392 console.assert(!this._workerProxy, 'HeapSnapshotWorkerProxy already exists') ;
1393 this._workerProxy = new Profiler.HeapSnapshotWorkerProxy(this._handleWorkerE vent.bind(this)); 1393 this._workerProxy = new Profiler.HeapSnapshotWorkerProxy(this._handleWorkerE vent.bind(this));
1394 this._workerProxy.addEventListener('wait', setProfileWait, this); 1394 this._workerProxy.addEventListener(Profiler.HeapSnapshotWorkerProxy.Events.W ait, setProfileWait, this);
1395 this._receiver = this._workerProxy.createLoader(this.uid, this._snapshotRece ived.bind(this)); 1395 this._receiver = this._workerProxy.createLoader(this.uid, this._snapshotRece ived.bind(this));
1396 } 1396 }
1397 1397
1398 /** 1398 /**
1399 * @param {string} eventName 1399 * @param {string} eventName
1400 * @param {*} data 1400 * @param {*} data
1401 */ 1401 */
1402 _handleWorkerEvent(eventName, data) { 1402 _handleWorkerEvent(eventName, data) {
1403 if (Profiler.HeapSnapshotProgressEvent.BrokenSnapshot === eventName) { 1403 if (Profiler.HeapSnapshotProgressEvent.BrokenSnapshot === eventName) {
1404 var error = /** @type {string} */ (data); 1404 var error = /** @type {string} */ (data);
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 var name = frameDiv.createChild('div'); 2082 var name = frameDiv.createChild('div');
2083 name.textContent = UI.beautifyFunctionName(frame.functionName); 2083 name.textContent = UI.beautifyFunctionName(frame.functionName);
2084 if (frame.scriptId) { 2084 if (frame.scriptId) {
2085 var urlElement = this._linkifier.linkifyScriptLocation( 2085 var urlElement = this._linkifier.linkifyScriptLocation(
2086 this._target, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1); 2086 this._target, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1);
2087 frameDiv.appendChild(urlElement); 2087 frameDiv.appendChild(urlElement);
2088 } 2088 }
2089 } 2089 }
2090 } 2090 }
2091 }; 2091 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698