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

Side by Side Diff: Source/devtools/front_end/sources/JavaScriptSourceFrame.js

Issue 341803002: DevTools: Support properly multiple targets in sources panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address vsevik's comments Created 6 years, 6 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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 818
819 /** 819 /**
820 * @param {number} lineNumber 820 * @param {number} lineNumber
821 */ 821 */
822 _continueToLine: function(lineNumber) 822 _continueToLine: function(lineNumber)
823 { 823 {
824 var executionContext = WebInspector.context.flavor(WebInspector.Executio nContext); 824 var executionContext = WebInspector.context.flavor(WebInspector.Executio nContext);
825 if (!executionContext) 825 if (!executionContext)
826 return; 826 return;
827 var rawLocation = /** @type {!WebInspector.DebuggerModel.Location} */ (t his._uiSourceCode.uiLocationToRawLocation(executionContext.target(), lineNumber, 0)); 827 var rawLocation = /** @type {!WebInspector.DebuggerModel.Location} */ (t his._uiSourceCode.uiLocationToRawLocation(executionContext.target(), lineNumber, 0));
828 rawLocation.continueToLocation(); 828 this._scriptsPanel.continueToLocation(rawLocation);
829 }, 829 },
830 830
831 dispose: function() 831 dispose: function()
832 { 832 {
833 this._breakpointManager.removeEventListener(WebInspector.BreakpointManag er.Events.BreakpointAdded, this._breakpointAdded, this); 833 this._breakpointManager.removeEventListener(WebInspector.BreakpointManag er.Events.BreakpointAdded, this._breakpointAdded, this);
834 this._breakpointManager.removeEventListener(WebInspector.BreakpointManag er.Events.BreakpointRemoved, this._breakpointRemoved, this); 834 this._breakpointManager.removeEventListener(WebInspector.BreakpointManag er.Events.BreakpointRemoved, this._breakpointRemoved, this);
835 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessageAdded, this._consoleMessageAdded, this); 835 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessageAdded, this._consoleMessageAdded, this);
836 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessageRemoved, this._consoleMessageRemoved, this); 836 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessageRemoved, this._consoleMessageRemoved, this);
837 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessagesCleared, this._consoleMessagesCleared, this); 837 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessagesCleared, this._consoleMessagesCleared, this);
838 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. SourceMappingChanged, this._onSourceMappingChanged, this); 838 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. SourceMappingChanged, this._onSourceMappingChanged, this);
839 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this); 839 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this);
840 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this); 840 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this);
841 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); 841 WebInspector.UISourceCodeFrame.prototype.dispose.call(this);
842 }, 842 },
843 843
844 __proto__: WebInspector.UISourceCodeFrame.prototype 844 __proto__: WebInspector.UISourceCodeFrame.prototype
845 } 845 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/DebuggerModel.js ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698