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

Side by Side Diff: Source/devtools/front_end/sources/CallStackSidebarPane.js

Issue 416843002: DevTools: Send async stack trace with Network.Initiator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 4 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
« no previous file with comments | « Source/devtools/front_end/sdk/ConsoleModel.js ('k') | Source/devtools/front_end/ui/UIUtils.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 delete this._statusMessageElement; 64 delete this._statusMessageElement;
65 delete this._hiddenPlacardsMessageElement; 65 delete this._hiddenPlacardsMessageElement;
66 /** @type {!Array.<!WebInspector.CallStackSidebarPane.Placard>} */ 66 /** @type {!Array.<!WebInspector.CallStackSidebarPane.Placard>} */
67 this.placards = []; 67 this.placards = [];
68 this._hiddenPlacards = 0; 68 this._hiddenPlacards = 0;
69 69
70 this._appendSidebarPlacards(callFrames); 70 this._appendSidebarPlacards(callFrames);
71 var topStackHidden = (this._hiddenPlacards === this.placards.length); 71 var topStackHidden = (this._hiddenPlacards === this.placards.length);
72 72
73 while (asyncStackTrace) { 73 while (asyncStackTrace) {
74 var title = asyncStackTrace.description; 74 var title = WebInspector.asyncStackTraceLabel(asyncStackTrace.descri ption);
75 if (title)
76 title += " " + WebInspector.UIString("(async)");
77 else
78 title = WebInspector.UIString("Async Call");
79 var asyncPlacard = new WebInspector.Placard(title, ""); 75 var asyncPlacard = new WebInspector.Placard(title, "");
80 asyncPlacard.element.addEventListener("click", this._selectNextVisib lePlacard.bind(this, this.placards.length, false), false); 76 asyncPlacard.element.addEventListener("click", this._selectNextVisib lePlacard.bind(this, this.placards.length, false), false);
81 asyncPlacard.element.addEventListener("contextmenu", this._asyncPlac ardContextMenu.bind(this, this.placards.length), true); 77 asyncPlacard.element.addEventListener("contextmenu", this._asyncPlac ardContextMenu.bind(this, this.placards.length), true);
82 asyncPlacard.element.classList.add("placard-label"); 78 asyncPlacard.element.classList.add("placard-label");
83 this.bodyElement.appendChild(asyncPlacard.element); 79 this.bodyElement.appendChild(asyncPlacard.element);
84 this._appendSidebarPlacards(asyncStackTrace.callFrames, asyncPlacard ); 80 this._appendSidebarPlacards(asyncStackTrace.callFrames, asyncPlacard );
85 asyncStackTrace = asyncStackTrace.asyncStackTrace; 81 asyncStackTrace = asyncStackTrace.asyncStackTrace;
86 } 82 }
87 83
88 if (topStackHidden) 84 if (topStackHidden)
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 /** 354 /**
359 * @param {!WebInspector.UILocation} uiLocation 355 * @param {!WebInspector.UILocation} uiLocation
360 */ 356 */
361 _update: function(uiLocation) 357 _update: function(uiLocation)
362 { 358 {
363 this.subtitle = uiLocation.linkText().trimMiddle(100); 359 this.subtitle = uiLocation.linkText().trimMiddle(100);
364 }, 360 },
365 361
366 __proto__: WebInspector.Placard.prototype 362 __proto__: WebInspector.Placard.prototype
367 } 363 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/ConsoleModel.js ('k') | Source/devtools/front_end/ui/UIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698