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

Unified Diff: Source/devtools/front_end/sdk/DebuggerModel.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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/sdk/DebuggerModel.js
diff --git a/Source/devtools/front_end/sdk/DebuggerModel.js b/Source/devtools/front_end/sdk/DebuggerModel.js
index e87d872f182bae2ee4ea15db688be78c5a6b68c4..c7033dccd7750d7707d1358ea7963c57cbbcfcf8 100644
--- a/Source/devtools/front_end/sdk/DebuggerModel.js
+++ b/Source/devtools/front_end/sdk/DebuggerModel.js
@@ -51,6 +51,7 @@ WebInspector.DebuggerModel = function(target)
/** @type {!WebInspector.Object} */
this._breakpointResolvedEventTarget = new WebInspector.Object();
+ this._isPausing = false;
WebInspector.settings.pauseOnExceptionEnabled.addChangeListener(this._pauseOnExceptionStateChanged, this);
WebInspector.settings.pauseOnCaughtException.addChangeListener(this._pauseOnExceptionStateChanged, this);
@@ -190,6 +191,7 @@ WebInspector.DebuggerModel.prototype = {
_debuggerWasDisabled: function()
{
this._debuggerEnabled = false;
+ this._isPausing = false;
this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.DebuggerWasDisabled);
},
@@ -239,6 +241,14 @@ WebInspector.DebuggerModel.prototype = {
this._agent.resume();
}
this._agent.setOverlayMessage(undefined, callback.bind(this));
+ this._isPausing = false;
+ },
+
+ pause: function()
+ {
+ this._isPausing = true;
+ this.skipAllPauses(false);
+ this._agent.pause();
},
/**
@@ -435,6 +445,7 @@ WebInspector.DebuggerModel.prototype = {
*/
_setDebuggerPausedDetails: function(debuggerPausedDetails)
{
+ this._isPausing = false;
if (this._debuggerPausedDetails)
this._debuggerPausedDetails.dispose();
this._debuggerPausedDetails = debuggerPausedDetails;
@@ -548,6 +559,14 @@ WebInspector.DebuggerModel.prototype = {
},
/**
+ * @return {boolean}
+ */
+ isPausing: function()
+ {
+ return this._isPausing;
+ },
+
+ /**
* @param {?WebInspector.DebuggerModel.CallFrame} callFrame
*/
setSelectedCallFrame: function(callFrame)
« no previous file with comments | « LayoutTests/http/tests/inspector/debugger-test.js ('k') | Source/devtools/front_end/sources/JavaScriptSourceFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698