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

Side by Side Diff: Source/devtools/front_end/Script.js

Issue 80383004: DevTools: Show asynchronous call stacks on frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/Placard.js ('k') | Source/devtools/front_end/Settings.js » ('j') | 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 updateLocations: function() 219 updateLocations: function()
220 { 220 {
221 var items = this._locations.items(); 221 var items = this._locations.items();
222 for (var i = 0; i < items.length; ++i) 222 for (var i = 0; i < items.length; ++i)
223 items[i].update(); 223 items[i].update();
224 }, 224 },
225 225
226 /** 226 /**
227 * @param {WebInspector.DebuggerModel.Location} rawLocation 227 * @param {WebInspector.DebuggerModel.Location} rawLocation
228 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDel egate 228 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDel egate
229 * @return {WebInspector.Script.Location} 229 * @return {!WebInspector.Script.Location}
230 */ 230 */
231 createLiveLocation: function(rawLocation, updateDelegate) 231 createLiveLocation: function(rawLocation, updateDelegate)
232 { 232 {
233 console.assert(rawLocation.scriptId === this.scriptId); 233 console.assert(rawLocation.scriptId === this.scriptId);
234 var location = new WebInspector.Script.Location(this, rawLocation, updat eDelegate); 234 var location = new WebInspector.Script.Location(this, rawLocation, updat eDelegate);
235 this._locations.add(location); 235 this._locations.add(location);
236 location.update(); 236 location.update();
237 return location; 237 return location;
238 }, 238 },
239 239
(...skipping 24 matching lines...) Expand all
264 }, 264 },
265 265
266 dispose: function() 266 dispose: function()
267 { 267 {
268 WebInspector.LiveLocation.prototype.dispose.call(this); 268 WebInspector.LiveLocation.prototype.dispose.call(this);
269 this._script._locations.remove(this); 269 this._script._locations.remove(this);
270 }, 270 },
271 271
272 __proto__: WebInspector.LiveLocation.prototype 272 __proto__: WebInspector.LiveLocation.prototype
273 } 273 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/Placard.js ('k') | Source/devtools/front_end/Settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698