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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 * @param {number} columnNumber | 570 * @param {number} columnNumber |
571 * @return {?WebInspector.DebuggerModel.Location} | 571 * @return {?WebInspector.DebuggerModel.Location} |
572 */ | 572 */ |
573 createRawLocationByScriptId: function(scriptId, sourceUrl, lineNumber, colum
nNumber) | 573 createRawLocationByScriptId: function(scriptId, sourceUrl, lineNumber, colum
nNumber) |
574 { | 574 { |
575 var script = this.scriptForId(scriptId); | 575 var script = this.scriptForId(scriptId); |
576 return script ? this.createRawLocation(script, lineNumber, columnNumber)
: this.createRawLocationByURL(sourceUrl, lineNumber, columnNumber); | 576 return script ? this.createRawLocation(script, lineNumber, columnNumber)
: this.createRawLocationByURL(sourceUrl, lineNumber, columnNumber); |
577 }, | 577 }, |
578 | 578 |
579 /** | 579 /** |
580 * @param {!ConsoleAgent.CallFrame} callFrame | |
581 * @return {!WebInspector.DebuggerModel.Location} | |
582 */ | |
583 createRawLocationByConsoleCallFrame: function(callFrame) | |
584 { | |
585 // FIXME(62725): console stack trace line/column numbers are one-based. | |
586 var lineNumber = callFrame.lineNumber ? callFrame.lineNumber - 1 : 0; | |
587 var columnNumber = callFrame.columnNumber ? callFrame.columnNumber - 1 :
0; | |
588 return new WebInspector.DebuggerModel.Location(this.target(), callFrame.
scriptId, lineNumber, columnNumber); | |
589 }, | |
590 | |
591 /** | |
592 * @return {boolean} | 580 * @return {boolean} |
593 */ | 581 */ |
594 isPaused: function() | 582 isPaused: function() |
595 { | 583 { |
596 return !!this.debuggerPausedDetails(); | 584 return !!this.debuggerPausedDetails(); |
597 }, | 585 }, |
598 | 586 |
599 /** | 587 /** |
600 * @return {boolean} | 588 * @return {boolean} |
601 */ | 589 */ |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 this.asyncStackTrace.dispose(); | 1197 this.asyncStackTrace.dispose(); |
1210 }, | 1198 }, |
1211 | 1199 |
1212 __proto__: WebInspector.SDKObject.prototype | 1200 __proto__: WebInspector.SDKObject.prototype |
1213 } | 1201 } |
1214 | 1202 |
1215 /** | 1203 /** |
1216 * @type {!WebInspector.DebuggerModel} | 1204 * @type {!WebInspector.DebuggerModel} |
1217 */ | 1205 */ |
1218 WebInspector.debuggerModel; | 1206 WebInspector.debuggerModel; |
OLD | NEW |