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

Side by Side Diff: Source/devtools/front_end/ui/UIUtils.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, 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 } 523 }
524 524
525 /** 525 /**
526 * @return {string} 526 * @return {string}
527 */ 527 */
528 WebInspector.anotherProfilerActiveLabel = function() 528 WebInspector.anotherProfilerActiveLabel = function()
529 { 529 {
530 return WebInspector.UIString("Another profiler is already active"); 530 return WebInspector.UIString("Another profiler is already active");
531 } 531 }
532 532
533 /**
534 * @param {string|undefined} description
535 * @return {string}
536 */
537 WebInspector.asyncStackTraceLabel = function(description)
538 {
539 if (description)
540 return description + " " + WebInspector.UIString("(async)");
541 return WebInspector.UIString("Async Call");
542 }
543
533 WebInspector.installPortStyles = function() 544 WebInspector.installPortStyles = function()
534 { 545 {
535 var platform = WebInspector.platform(); 546 var platform = WebInspector.platform();
536 document.body.classList.add("platform-" + platform); 547 document.body.classList.add("platform-" + platform);
537 var flavor = WebInspector.platformFlavor(); 548 var flavor = WebInspector.platformFlavor();
538 if (flavor) 549 if (flavor)
539 document.body.classList.add("platform-" + flavor); 550 document.body.classList.add("platform-" + flavor);
540 var port = WebInspector.port(); 551 var port = WebInspector.port();
541 document.body.classList.add("port-" + port); 552 document.body.classList.add("port-" + port);
542 } 553 }
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 window.addEventListener("focus", WebInspector._windowFocused, false); 915 window.addEventListener("focus", WebInspector._windowFocused, false);
905 window.addEventListener("blur", WebInspector._windowBlurred, false); 916 window.addEventListener("blur", WebInspector._windowBlurred, false);
906 document.addEventListener("focus", WebInspector._focusChanged, true); 917 document.addEventListener("focus", WebInspector._focusChanged, true);
907 document.addEventListener("blur", WebInspector._documentBlurred, true); 918 document.addEventListener("blur", WebInspector._documentBlurred, true);
908 window.removeEventListener("DOMContentLoaded", windowLoaded, false); 919 window.removeEventListener("DOMContentLoaded", windowLoaded, false);
909 } 920 }
910 921
911 window.addEventListener("DOMContentLoaded", windowLoaded, false); 922 window.addEventListener("DOMContentLoaded", windowLoaded, false);
912 923
913 })(); 924 })();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/CallStackSidebarPane.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698