| 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 1ce6ec555175e1af4f954dca99981a91d9d5c979..c1b143176c1058dc4d56485536bc1660c81057aa 100644
|
| --- a/Source/devtools/front_end/sdk/DebuggerModel.js
|
| +++ b/Source/devtools/front_end/sdk/DebuggerModel.js
|
| @@ -56,7 +56,6 @@ WebInspector.DebuggerModel = function(target)
|
| WebInspector.settings.enableAsyncStackTraces.addChangeListener(this.asyncStackTracesStateChanged, this);
|
| WebInspector.settings.skipStackFramesPattern.addChangeListener(this._applySkipStackFrameSettings, this);
|
| WebInspector.settings.skipContentScripts.addChangeListener(this._applySkipStackFrameSettings, this);
|
| - WebInspector.settings.disablePausedStateOverlay.addChangeListener(this._updateOverlayMessage, this);
|
|
|
| this.enableDebugger();
|
|
|
| @@ -204,62 +203,27 @@ WebInspector.DebuggerModel.prototype = {
|
|
|
| stepInto: function()
|
| {
|
| - /**
|
| - * @this {WebInspector.DebuggerModel}
|
| - */
|
| - function callback()
|
| - {
|
| - this._agent.stepInto();
|
| - }
|
| - this._setOverlayMessage(undefined).then(callback.bind(this));
|
| + this._agent.stepInto();
|
| },
|
|
|
| stepIntoAsync: function()
|
| {
|
| - /**
|
| - * @this {WebInspector.DebuggerModel}
|
| - */
|
| - function callback()
|
| - {
|
| - this._agent.stepIntoAsync();
|
| - }
|
| - this._setOverlayMessage(undefined).then(callback.bind(this));
|
| + this._agent.stepIntoAsync();
|
| },
|
|
|
| stepOver: function()
|
| {
|
| - /**
|
| - * @this {WebInspector.DebuggerModel}
|
| - */
|
| - function callback()
|
| - {
|
| - this._agent.stepOver();
|
| - }
|
| - this._setOverlayMessage(undefined).then(callback.bind(this));
|
| + this._agent.stepOver();
|
| },
|
|
|
| stepOut: function()
|
| {
|
| - /**
|
| - * @this {WebInspector.DebuggerModel}
|
| - */
|
| - function callback()
|
| - {
|
| - this._agent.stepOut();
|
| - }
|
| - this._setOverlayMessage(undefined).then(callback.bind(this));
|
| + this._agent.stepOut();
|
| },
|
|
|
| resume: function()
|
| {
|
| - /**
|
| - * @this {WebInspector.DebuggerModel}
|
| - */
|
| - function callback()
|
| - {
|
| - this._agent.resume();
|
| - }
|
| - this._setOverlayMessage(undefined).then(callback.bind(this));
|
| + this._agent.resume();
|
| this._isPausing = false;
|
| },
|
|
|
| @@ -485,35 +449,6 @@ WebInspector.DebuggerModel.prototype = {
|
| this.setSelectedCallFrame(debuggerPausedDetails.callFrames[0]);
|
| else
|
| this.setSelectedCallFrame(null);
|
| - this._updateOverlayMessage();
|
| - },
|
| -
|
| - _updateOverlayMessage: function()
|
| - {
|
| - var message = this._debuggerPausedDetails && !WebInspector.settings.disablePausedStateOverlay.get() ? WebInspector.UIString("Paused in debugger") : undefined;
|
| - this._setOverlayMessage(message);
|
| - },
|
| -
|
| - /**
|
| - * @param {string=} message
|
| - * @return {!Promise.<undefined>}
|
| - */
|
| - _setOverlayMessage: function(message)
|
| - {
|
| - /**
|
| - * @param {function(?):?} fulfill
|
| - * @param {function(*):?} reject
|
| - * @this {WebInspector.DebuggerModel}
|
| - */
|
| - function setOverlayMessagePromiseCallback(fulfill, reject)
|
| - {
|
| - var pageAgent = this.target().pageAgent();
|
| - if (pageAgent)
|
| - pageAgent.setOverlayMessage(message, fulfill);
|
| - else
|
| - fulfill(undefined);
|
| - }
|
| - return new Promise(setOverlayMessagePromiseCallback.bind(this));
|
| },
|
|
|
| /**
|
|
|