OLD | NEW |
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 Loading... |
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 Loading... |
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 })(); |
OLD | NEW |