| 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 578 |
| 579 /** | 579 /** |
| 580 * @param {!DebuggerAgent.ScriptId} scriptId | 580 * @param {!DebuggerAgent.ScriptId} scriptId |
| 581 * @param {string} sourceURL | 581 * @param {string} sourceURL |
| 582 * @param {number} startLine | 582 * @param {number} startLine |
| 583 * @param {number} startColumn | 583 * @param {number} startColumn |
| 584 * @param {number} endLine | 584 * @param {number} endLine |
| 585 * @param {number} endColumn | 585 * @param {number} endColumn |
| 586 * @param {boolean} isContentScript | 586 * @param {boolean} isContentScript |
| 587 * @param {boolean} isInternalScript | 587 * @param {boolean} isInternalScript |
| 588 * @param {boolean} isLiveEdit |
| 588 * @param {string=} sourceMapURL | 589 * @param {string=} sourceMapURL |
| 589 * @param {boolean=} hasSourceURL | 590 * @param {boolean=} hasSourceURL |
| 590 * @param {boolean=} hasSyntaxError | 591 * @param {boolean=} hasSyntaxError |
| 591 * @return {!WebInspector.Script} | 592 * @return {!WebInspector.Script} |
| 592 */ | 593 */ |
| 593 _parsedScriptSource: function(scriptId, sourceURL, startLine, startColumn, e
ndLine, endColumn, isContentScript, isInternalScript, sourceMapURL, hasSourceURL
, hasSyntaxError) | 594 _parsedScriptSource: function(scriptId, sourceURL, startLine, startColumn, e
ndLine, endColumn, isContentScript, isInternalScript, isLiveEdit, sourceMapURL,
hasSourceURL, hasSyntaxError) |
| 594 { | 595 { |
| 595 var script = new WebInspector.Script(this, scriptId, sourceURL, startLin
e, startColumn, endLine, endColumn, isContentScript, isInternalScript, sourceMap
URL, hasSourceURL); | 596 var script = new WebInspector.Script(this, scriptId, sourceURL, startLin
e, startColumn, endLine, endColumn, isContentScript, isInternalScript, isLiveEdi
t, sourceMapURL, hasSourceURL); |
| 596 this._registerScript(script); | 597 this._registerScript(script); |
| 597 if (!hasSyntaxError) | 598 if (!hasSyntaxError) |
| 598 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Pars
edScriptSource, script); | 599 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Pars
edScriptSource, script); |
| 599 else | 600 else |
| 600 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Fail
edToParseScriptSource, script); | 601 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Fail
edToParseScriptSource, script); |
| 601 return script; | 602 return script; |
| 602 }, | 603 }, |
| 603 | 604 |
| 604 /** | 605 /** |
| 605 * @param {!WebInspector.Script} script | 606 * @param {!WebInspector.Script} script |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 /** | 1003 /** |
| 1003 * @override | 1004 * @override |
| 1004 * @param {!DebuggerAgent.ScriptId} scriptId | 1005 * @param {!DebuggerAgent.ScriptId} scriptId |
| 1005 * @param {string} sourceURL | 1006 * @param {string} sourceURL |
| 1006 * @param {number} startLine | 1007 * @param {number} startLine |
| 1007 * @param {number} startColumn | 1008 * @param {number} startColumn |
| 1008 * @param {number} endLine | 1009 * @param {number} endLine |
| 1009 * @param {number} endColumn | 1010 * @param {number} endColumn |
| 1010 * @param {boolean=} isContentScript | 1011 * @param {boolean=} isContentScript |
| 1011 * @param {boolean=} isInternalScript | 1012 * @param {boolean=} isInternalScript |
| 1013 * @param {boolean=} isLiveEdit |
| 1012 * @param {string=} sourceMapURL | 1014 * @param {string=} sourceMapURL |
| 1013 * @param {boolean=} hasSourceURL | 1015 * @param {boolean=} hasSourceURL |
| 1014 */ | 1016 */ |
| 1015 scriptParsed: function(scriptId, sourceURL, startLine, startColumn, endLine,
endColumn, isContentScript, isInternalScript, sourceMapURL, hasSourceURL) | 1017 scriptParsed: function(scriptId, sourceURL, startLine, startColumn, endLine,
endColumn, isContentScript, isInternalScript, isLiveEdit, sourceMapURL, hasSour
ceURL) |
| 1016 { | 1018 { |
| 1017 this._debuggerModel._parsedScriptSource(scriptId, sourceURL, startLine,
startColumn, endLine, endColumn, !!isContentScript, !!isInternalScript, sourceMa
pURL, hasSourceURL, false); | 1019 this._debuggerModel._parsedScriptSource(scriptId, sourceURL, startLine,
startColumn, endLine, endColumn, !!isContentScript, !!isInternalScript, !!isLive
Edit, sourceMapURL, hasSourceURL, false); |
| 1018 }, | 1020 }, |
| 1019 | 1021 |
| 1020 /** | 1022 /** |
| 1021 * @override | 1023 * @override |
| 1022 * @param {!DebuggerAgent.ScriptId} scriptId | 1024 * @param {!DebuggerAgent.ScriptId} scriptId |
| 1023 * @param {string} sourceURL | 1025 * @param {string} sourceURL |
| 1024 * @param {number} startLine | 1026 * @param {number} startLine |
| 1025 * @param {number} startColumn | 1027 * @param {number} startColumn |
| 1026 * @param {number} endLine | 1028 * @param {number} endLine |
| 1027 * @param {number} endColumn | 1029 * @param {number} endColumn |
| 1028 * @param {boolean=} isContentScript | 1030 * @param {boolean=} isContentScript |
| 1029 * @param {boolean=} isInternalScript | 1031 * @param {boolean=} isInternalScript |
| 1030 * @param {string=} sourceMapURL | 1032 * @param {string=} sourceMapURL |
| 1031 * @param {boolean=} hasSourceURL | 1033 * @param {boolean=} hasSourceURL |
| 1032 */ | 1034 */ |
| 1033 scriptFailedToParse: function(scriptId, sourceURL, startLine, startColumn, e
ndLine, endColumn, isContentScript, isInternalScript, sourceMapURL, hasSourceURL
) | 1035 scriptFailedToParse: function(scriptId, sourceURL, startLine, startColumn, e
ndLine, endColumn, isContentScript, isInternalScript, sourceMapURL, hasSourceURL
) |
| 1034 { | 1036 { |
| 1035 this._debuggerModel._parsedScriptSource(scriptId, sourceURL, startLine,
startColumn, endLine, endColumn, !!isContentScript, !!isInternalScript, sourceMa
pURL, hasSourceURL, true); | 1037 this._debuggerModel._parsedScriptSource(scriptId, sourceURL, startLine,
startColumn, endLine, endColumn, !!isContentScript, !!isInternalScript, false, s
ourceMapURL, hasSourceURL, true); |
| 1036 }, | 1038 }, |
| 1037 | 1039 |
| 1038 /** | 1040 /** |
| 1039 * @override | 1041 * @override |
| 1040 * @param {!DebuggerAgent.BreakpointId} breakpointId | 1042 * @param {!DebuggerAgent.BreakpointId} breakpointId |
| 1041 * @param {!DebuggerAgent.Location} location | 1043 * @param {!DebuggerAgent.Location} location |
| 1042 */ | 1044 */ |
| 1043 breakpointResolved: function(breakpointId, location) | 1045 breakpointResolved: function(breakpointId, location) |
| 1044 { | 1046 { |
| 1045 this._debuggerModel._breakpointResolved(breakpointId, location); | 1047 this._debuggerModel._breakpointResolved(breakpointId, location); |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 /** | 1484 /** |
| 1483 * @param {?WebInspector.Target} target | 1485 * @param {?WebInspector.Target} target |
| 1484 * @return {?WebInspector.DebuggerModel} | 1486 * @return {?WebInspector.DebuggerModel} |
| 1485 */ | 1487 */ |
| 1486 WebInspector.DebuggerModel.fromTarget = function(target) | 1488 WebInspector.DebuggerModel.fromTarget = function(target) |
| 1487 { | 1489 { |
| 1488 if (!target || !target.hasJSContext()) | 1490 if (!target || !target.hasJSContext()) |
| 1489 return null; | 1491 return null; |
| 1490 return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector
.DebuggerModel)); | 1492 return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector
.DebuggerModel)); |
| 1491 } | 1493 } |
| OLD | NEW |