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

Side by Side Diff: Source/devtools/front_end/timeline/TracingTimelineUIUtils.js

Issue 448743002: DevTools: Linkify console stacks with blackboxing consideration. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.TimelineUIUtils} 7 * @extends {WebInspector.TimelineUIUtils}
8 */ 8 */
9 WebInspector.TracingTimelineUIUtils = function() 9 WebInspector.TracingTimelineUIUtils = function()
10 { 10 {
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 * @return {?Element} 464 * @return {?Element}
465 */ 465 */
466 function linkifyTopCallFrame() 466 function linkifyTopCallFrame()
467 { 467 {
468 var stackTrace = event.stackTrace; 468 var stackTrace = event.stackTrace;
469 if (!stackTrace) { 469 if (!stackTrace) {
470 var initiator = event.initiator; 470 var initiator = event.initiator;
471 if (initiator) 471 if (initiator)
472 stackTrace = initiator.stackTrace; 472 stackTrace = initiator.stackTrace;
473 } 473 }
474 if (!stackTrace || !stackTrace.length) 474 return linkifier.linkifyTopUnblackboxedConsoleCallFrame(target, stackTra ce, "timeline-details");
475 return null;
476 return linkifier.linkifyConsoleCallFrame(target, stackTrace[0], "timelin e-details");
477 } 475 }
478 } 476 }
479 477
480 /** 478 /**
481 * @param {!WebInspector.TracingModel.Event} event 479 * @param {!WebInspector.TracingModel.Event} event
482 * @param {!WebInspector.TracingTimelineModel} model 480 * @param {!WebInspector.TracingTimelineModel} model
483 * @param {!WebInspector.Linkifier} linkifier 481 * @param {!WebInspector.Linkifier} linkifier
484 * @param {function(!DocumentFragment)} callback 482 * @param {function(!DocumentFragment)} callback
485 */ 483 */
486 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails = function(event, mod el, linkifier, callback) 484 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails = function(event, mod el, linkifier, callback)
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 return result; 800 return result;
803 } 801 }
804 802
805 /** 803 /**
806 * @return {!WebInspector.TracingTimelineModel.Filter} 804 * @return {!WebInspector.TracingTimelineModel.Filter}
807 */ 805 */
808 WebInspector.TracingTimelineUIUtils.hiddenEventsFilter = function() 806 WebInspector.TracingTimelineUIUtils.hiddenEventsFilter = function()
809 { 807 {
810 return new WebInspector.TracingTimelineModel.InclusiveEventNameFilter(WebIns pector.TracingTimelineUIUtils._visibleTypes()); 808 return new WebInspector.TracingTimelineModel.InclusiveEventNameFilter(WebIns pector.TracingTimelineUIUtils._visibleTypes());
811 } 809 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698