OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 _asyncStackTracesStateChanged: function() | 172 _asyncStackTracesStateChanged: function() |
173 { | 173 { |
174 const maxAsyncStackChainDepth = 4; | 174 const maxAsyncStackChainDepth = 4; |
175 var enabled = WebInspector.settings.enableAsyncStackTraces.get() && !thi s.target().profilingLock.isAcquired(); | 175 var enabled = WebInspector.settings.enableAsyncStackTraces.get() && !thi s.target().profilingLock.isAcquired(); |
176 this._agent.setAsyncCallStackDepth(enabled ? maxAsyncStackChainDepth : 0 ); | 176 this._agent.setAsyncCallStackDepth(enabled ? maxAsyncStackChainDepth : 0 ); |
177 }, | 177 }, |
178 | 178 |
179 _debuggerWasDisabled: function() | 179 _debuggerWasDisabled: function() |
180 { | 180 { |
181 this._debuggerEnabled = false; | 181 this._debuggerEnabled = false; |
182 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Debugger WasDisabled); | 182 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Debugger WasDisabled, this.target()); |
vsevik
2014/06/18 13:51:47
No need, you could extract target by calling targe
sergeyv
2014/06/19 12:42:03
Done.
| |
183 }, | 183 }, |
184 | 184 |
185 stepInto: function() | 185 stepInto: function() |
186 { | 186 { |
187 /** | 187 /** |
188 * @this {WebInspector.DebuggerModel} | 188 * @this {WebInspector.DebuggerModel} |
189 */ | 189 */ |
190 function callback() | 190 function callback() |
191 { | 191 { |
192 this._agent.stepInto(); | 192 this._agent.stepInto(); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
331 */ | 331 */ |
332 _breakpointResolved: function(breakpointId, location) | 332 _breakpointResolved: function(breakpointId, location) |
333 { | 333 { |
334 this._breakpointResolvedEventTarget.dispatchEventToListeners(breakpointI d, WebInspector.DebuggerModel.Location.fromPayload(this.target(), location)); | 334 this._breakpointResolvedEventTarget.dispatchEventToListeners(breakpointI d, WebInspector.DebuggerModel.Location.fromPayload(this.target(), location)); |
335 }, | 335 }, |
336 | 336 |
337 _globalObjectCleared: function() | 337 _globalObjectCleared: function() |
338 { | 338 { |
339 this._setDebuggerPausedDetails(null); | 339 this._setDebuggerPausedDetails(null); |
340 this._reset(); | 340 this._reset(); |
341 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.GlobalOb jectCleared); | 341 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.GlobalOb jectCleared, this.target()); |
vsevik
2014/06/18 13:51:47
ditto
sergeyv
2014/06/19 12:42:03
Done.
| |
342 }, | 342 }, |
343 | 343 |
344 _reset: function() | 344 _reset: function() |
345 { | 345 { |
346 this._scripts = {}; | 346 this._scripts = {}; |
347 this._scriptsBySourceURL.clear(); | 347 this._scriptsBySourceURL.clear(); |
348 }, | 348 }, |
349 | 349 |
350 /** | 350 /** |
351 * @return {!Object.<string, !WebInspector.Script>} | 351 * @return {!Object.<string, !WebInspector.Script>} |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
446 * @param {!DebuggerAgent.StackTrace=} asyncStackTrace | 446 * @param {!DebuggerAgent.StackTrace=} asyncStackTrace |
447 */ | 447 */ |
448 _pausedScript: function(callFrames, reason, auxData, breakpointIds, asyncSta ckTrace) | 448 _pausedScript: function(callFrames, reason, auxData, breakpointIds, asyncSta ckTrace) |
449 { | 449 { |
450 this._setDebuggerPausedDetails(new WebInspector.DebuggerPausedDetails(th is.target(), callFrames, reason, auxData, breakpointIds, asyncStackTrace)); | 450 this._setDebuggerPausedDetails(new WebInspector.DebuggerPausedDetails(th is.target(), callFrames, reason, auxData, breakpointIds, asyncStackTrace)); |
451 }, | 451 }, |
452 | 452 |
453 _resumedScript: function() | 453 _resumedScript: function() |
454 { | 454 { |
455 this._setDebuggerPausedDetails(null); | 455 this._setDebuggerPausedDetails(null); |
456 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Debugger Resumed); | 456 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Debugger Resumed, this.target()); |
vsevik
2014/06/18 13:51:47
ditto
sergeyv
2014/06/19 12:42:03
Done.
| |
457 }, | 457 }, |
458 | 458 |
459 /** | 459 /** |
460 * @param {!DebuggerAgent.ScriptId} scriptId | 460 * @param {!DebuggerAgent.ScriptId} scriptId |
461 * @param {string} sourceURL | 461 * @param {string} sourceURL |
462 * @param {number} startLine | 462 * @param {number} startLine |
463 * @param {number} startColumn | 463 * @param {number} startColumn |
464 * @param {number} endLine | 464 * @param {number} endLine |
465 * @param {number} endColumn | 465 * @param {number} endColumn |
466 * @param {boolean} isContentScript | 466 * @param {boolean} isContentScript |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1151 this.asyncStackTrace.dispose(); | 1151 this.asyncStackTrace.dispose(); |
1152 }, | 1152 }, |
1153 | 1153 |
1154 __proto__: WebInspector.TargetAware.prototype | 1154 __proto__: WebInspector.TargetAware.prototype |
1155 } | 1155 } |
1156 | 1156 |
1157 /** | 1157 /** |
1158 * @type {!WebInspector.DebuggerModel} | 1158 * @type {!WebInspector.DebuggerModel} |
1159 */ | 1159 */ |
1160 WebInspector.debuggerModel; | 1160 WebInspector.debuggerModel; |
OLD | NEW |