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

Side by Side Diff: Source/devtools/front_end/SourcesPanel.js

Issue 80383004: DevTools: Show asynchronous call stacks on frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 years 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/SettingsScreen.js ('k') | Source/devtools/front_end/inspector.css » ('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 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 _showDebuggerPausedDetails: function() 294 _showDebuggerPausedDetails: function()
295 { 295 {
296 var details = WebInspector.debuggerModel.debuggerPausedDetails(); 296 var details = WebInspector.debuggerModel.debuggerPausedDetails();
297 297
298 this._paused = true; 298 this._paused = true;
299 this._waitingToPause = false; 299 this._waitingToPause = false;
300 this._stepping = false; 300 this._stepping = false;
301 301
302 this._updateDebuggerButtons(); 302 this._updateDebuggerButtons();
303 303
304 this.sidebarPanes.callstack.update(details.callFrames); 304 this.sidebarPanes.callstack.update(details.callFrames, details.asyncStac kTrace);
305 305
306 if (details.reason === WebInspector.DebuggerModel.BreakReason.DOM) { 306 if (details.reason === WebInspector.DebuggerModel.BreakReason.DOM) {
307 WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.a uxData); 307 WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.a uxData);
308 function didCreateBreakpointHitStatusMessage(element) 308 function didCreateBreakpointHitStatusMessage(element)
309 { 309 {
310 this.sidebarPanes.callstack.setStatus(element); 310 this.sidebarPanes.callstack.setStatus(element);
311 } 311 }
312 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMess age(details.auxData, didCreateBreakpointHitStatusMessage.bind(this)); 312 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMess age(details.auxData, didCreateBreakpointHitStatusMessage.bind(this));
313 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Eve ntListener) { 313 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Eve ntListener) {
314 var eventName = details.auxData.eventName; 314 var eventName = details.auxData.eventName;
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 727
728 this._pauseButton.setEnabled(!this._waitingToPause); 728 this._pauseButton.setEnabled(!this._waitingToPause);
729 this._stepOverButton.setEnabled(false); 729 this._stepOverButton.setEnabled(false);
730 this._stepIntoButton.setEnabled(false); 730 this._stepIntoButton.setEnabled(false);
731 this._stepOutButton.setEnabled(false); 731 this._stepOutButton.setEnabled(false);
732 } 732 }
733 }, 733 },
734 734
735 _clearInterface: function() 735 _clearInterface: function()
736 { 736 {
737 this.sidebarPanes.callstack.update(null); 737 this.sidebarPanes.callstack.update(null, null);
738 this.sidebarPanes.scopechain.update(null); 738 this.sidebarPanes.scopechain.update(null);
739 this.sidebarPanes.jsBreakpoints.clearBreakpointHighlight(); 739 this.sidebarPanes.jsBreakpoints.clearBreakpointHighlight();
740 WebInspector.domBreakpointsSidebarPane.clearBreakpointHighlight(); 740 WebInspector.domBreakpointsSidebarPane.clearBreakpointHighlight();
741 this.sidebarPanes.eventListenerBreakpoints.clearBreakpointHighlight(); 741 this.sidebarPanes.eventListenerBreakpoints.clearBreakpointHighlight();
742 this.sidebarPanes.xhrBreakpoints.clearBreakpointHighlight(); 742 this.sidebarPanes.xhrBreakpoints.clearBreakpointHighlight();
743 743
744 this._clearCurrentExecutionLine(); 744 this._clearCurrentExecutionLine();
745 this._updateDebuggerButtons(); 745 this._updateDebuggerButtons();
746 }, 746 },
747 747
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 WebInspector.DrawerEditorView = function() 1670 WebInspector.DrawerEditorView = function()
1671 { 1671 {
1672 WebInspector.View.call(this); 1672 WebInspector.View.call(this);
1673 this.element.id = "drawer-editor-view"; 1673 this.element.id = "drawer-editor-view";
1674 this.element.addStyleClass("vbox"); 1674 this.element.addStyleClass("vbox");
1675 } 1675 }
1676 1676
1677 WebInspector.DrawerEditorView.prototype = { 1677 WebInspector.DrawerEditorView.prototype = {
1678 __proto__: WebInspector.View.prototype 1678 __proto__: WebInspector.View.prototype
1679 } 1679 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/SettingsScreen.js ('k') | Source/devtools/front_end/inspector.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698