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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js

Issue 2080633002: DevTools: render markers as circles on the main timeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined tests Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 if (url) 431 if (url)
432 detailsText = WebInspector.displayNameForURL(url) + ":" + eventData[ "lineNumber"]; 432 detailsText = WebInspector.displayNameForURL(url) + ":" + eventData[ "lineNumber"];
433 break; 433 break;
434 case recordType.ParseScriptOnBackground: 434 case recordType.ParseScriptOnBackground:
435 case recordType.XHRReadyStateChange: 435 case recordType.XHRReadyStateChange:
436 case recordType.XHRLoad: 436 case recordType.XHRLoad:
437 var url = eventData["url"]; 437 var url = eventData["url"];
438 if (url) 438 if (url)
439 detailsText = WebInspector.displayNameForURL(url); 439 detailsText = WebInspector.displayNameForURL(url);
440 break; 440 break;
441 case recordType.TimeStamp:
442 detailsText = eventData["message"];
443 break;
441 444
442 case recordType.WebSocketCreate: 445 case recordType.WebSocketCreate:
443 case recordType.WebSocketSendHandshakeRequest: 446 case recordType.WebSocketSendHandshakeRequest:
444 case recordType.WebSocketReceiveHandshakeResponse: 447 case recordType.WebSocketReceiveHandshakeResponse:
445 case recordType.WebSocketDestroy: 448 case recordType.WebSocketDestroy:
446 case recordType.ResourceSendRequest: 449 case recordType.ResourceSendRequest:
447 case recordType.ResourceReceivedData: 450 case recordType.ResourceReceivedData:
448 case recordType.ResourceReceiveResponse: 451 case recordType.ResourceReceiveResponse:
449 case recordType.ResourceFinish: 452 case recordType.ResourceFinish:
450 case recordType.PaintImage: 453 case recordType.PaintImage:
(...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after
2135 case warnings.V8Deopt: 2138 case warnings.V8Deopt:
2136 span.appendChild(WebInspector.linkifyURLAsNode("https://github.com/Googl eChrome/devtools-docs/issues/53", 2139 span.appendChild(WebInspector.linkifyURLAsNode("https://github.com/Googl eChrome/devtools-docs/issues/53",
2137 WebInspector.UIString("Not optimized"), undefined, true)); 2140 WebInspector.UIString("Not optimized"), undefined, true));
2138 span.createTextChild(WebInspector.UIString(": %s", eventData["deoptReaso n"])); 2141 span.createTextChild(WebInspector.UIString(": %s", eventData["deoptReaso n"]));
2139 break; 2142 break;
2140 default: 2143 default:
2141 console.assert(false, "Unhandled TimelineModel.WarningType"); 2144 console.assert(false, "Unhandled TimelineModel.WarningType");
2142 } 2145 }
2143 return span; 2146 return span;
2144 } 2147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698