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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 2247483003: [DevTools] Removed isInternalScript flag from protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-internal-script-flag
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 /** 456 /**
457 * @param {!RuntimeAgent.ScriptId} scriptId 457 * @param {!RuntimeAgent.ScriptId} scriptId
458 * @param {string} sourceURL 458 * @param {string} sourceURL
459 * @param {number} startLine 459 * @param {number} startLine
460 * @param {number} startColumn 460 * @param {number} startColumn
461 * @param {number} endLine 461 * @param {number} endLine
462 * @param {number} endColumn 462 * @param {number} endColumn
463 * @param {!RuntimeAgent.ExecutionContextId} executionContextId 463 * @param {!RuntimeAgent.ExecutionContextId} executionContextId
464 * @param {string} hash 464 * @param {string} hash
465 * @param {*|undefined} executionContextAuxData 465 * @param {*|undefined} executionContextAuxData
466 * @param {boolean} isInternalScript
467 * @param {boolean} isLiveEdit 466 * @param {boolean} isLiveEdit
468 * @param {string=} sourceMapURL 467 * @param {string=} sourceMapURL
469 * @param {boolean=} hasSourceURL 468 * @param {boolean=} hasSourceURL
470 * @param {boolean=} hasSyntaxError 469 * @param {boolean=} hasSyntaxError
471 * @return {!WebInspector.Script} 470 * @return {!WebInspector.Script}
472 */ 471 */
473 _parsedScriptSource: function(scriptId, sourceURL, startLine, startColumn, e ndLine, endColumn, executionContextId, hash, executionContextAuxData, isInternal Script, isLiveEdit, sourceMapURL, hasSourceURL, hasSyntaxError) 472 _parsedScriptSource: function(scriptId, sourceURL, startLine, startColumn, e ndLine, endColumn, executionContextId, hash, executionContextAuxData, isLiveEdit , sourceMapURL, hasSourceURL, hasSyntaxError)
474 { 473 {
475 var isContentScript = false; 474 var isContentScript = false;
476 if (executionContextAuxData && ("isDefault" in executionContextAuxData)) 475 if (executionContextAuxData && ("isDefault" in executionContextAuxData))
477 isContentScript = !executionContextAuxData["isDefault"]; 476 isContentScript = !executionContextAuxData["isDefault"];
478 var script = new WebInspector.Script(this, scriptId, sourceURL, startLin e, startColumn, endLine, endColumn, executionContextId, hash, isContentScript, i sInternalScript, isLiveEdit, sourceMapURL, hasSourceURL); 477 var script = new WebInspector.Script(this, scriptId, sourceURL, startLin e, startColumn, endLine, endColumn, executionContextId, hash, isContentScript, i sLiveEdit, sourceMapURL, hasSourceURL);
479 this._registerScript(script); 478 this._registerScript(script);
480 if (!hasSyntaxError) 479 if (!hasSyntaxError)
481 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Pars edScriptSource, script); 480 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Pars edScriptSource, script);
482 else 481 else
483 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Fail edToParseScriptSource, script); 482 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Fail edToParseScriptSource, script);
484 return script; 483 return script;
485 }, 484 },
486 485
487 /** 486 /**
488 * @param {!WebInspector.Script} script 487 * @param {!WebInspector.Script} script
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 * @override 836 * @override
838 * @param {!RuntimeAgent.ScriptId} scriptId 837 * @param {!RuntimeAgent.ScriptId} scriptId
839 * @param {string} sourceURL 838 * @param {string} sourceURL
840 * @param {number} startLine 839 * @param {number} startLine
841 * @param {number} startColumn 840 * @param {number} startColumn
842 * @param {number} endLine 841 * @param {number} endLine
843 * @param {number} endColumn 842 * @param {number} endColumn
844 * @param {!RuntimeAgent.ExecutionContextId} executionContextId 843 * @param {!RuntimeAgent.ExecutionContextId} executionContextId
845 * @param {string} hash 844 * @param {string} hash
846 * @param {*=} executionContextAuxData 845 * @param {*=} executionContextAuxData
847 * @param {boolean=} isInternalScript
848 * @param {boolean=} isLiveEdit 846 * @param {boolean=} isLiveEdit
849 * @param {string=} sourceMapURL 847 * @param {string=} sourceMapURL
850 * @param {boolean=} hasSourceURL 848 * @param {boolean=} hasSourceURL
851 */ 849 */
852 scriptParsed: function(scriptId, sourceURL, startLine, startColumn, endLine, endColumn, executionContextId, hash, executionContextAuxData, isInternalScript, isLiveEdit, sourceMapURL, hasSourceURL) 850 scriptParsed: function(scriptId, sourceURL, startLine, startColumn, endLine, endColumn, executionContextId, hash, executionContextAuxData, isLiveEdit, sourc eMapURL, hasSourceURL)
853 { 851 {
854 this._debuggerModel._parsedScriptSource(scriptId, sourceURL, startLine, startColumn, endLine, endColumn, executionContextId, hash, executionContextAuxDa ta, !!isInternalScript, !!isLiveEdit, sourceMapURL, hasSourceURL, false); 852 this._debuggerModel._parsedScriptSource(scriptId, sourceURL, startLine, startColumn, endLine, endColumn, executionContextId, hash, executionContextAuxDa ta, !!isLiveEdit, sourceMapURL, hasSourceURL, false);
855 }, 853 },
856 854
857 /** 855 /**
858 * @override 856 * @override
859 * @param {!RuntimeAgent.ScriptId} scriptId 857 * @param {!RuntimeAgent.ScriptId} scriptId
860 * @param {string} sourceURL 858 * @param {string} sourceURL
861 * @param {number} startLine 859 * @param {number} startLine
862 * @param {number} startColumn 860 * @param {number} startColumn
863 * @param {number} endLine 861 * @param {number} endLine
864 * @param {number} endColumn 862 * @param {number} endColumn
865 * @param {!RuntimeAgent.ExecutionContextId} executionContextId 863 * @param {!RuntimeAgent.ExecutionContextId} executionContextId
866 * @param {string} hash 864 * @param {string} hash
867 * @param {*=} executionContextAuxData 865 * @param {*=} executionContextAuxData
868 * @param {boolean=} isInternalScript
869 * @param {string=} sourceMapURL 866 * @param {string=} sourceMapURL
870 * @param {boolean=} hasSourceURL 867 * @param {boolean=} hasSourceURL
871 */ 868 */
872 scriptFailedToParse: function(scriptId, sourceURL, startLine, startColumn, e ndLine, endColumn, executionContextId, hash, executionContextAuxData, isInternal Script, sourceMapURL, hasSourceURL) 869 scriptFailedToParse: function(scriptId, sourceURL, startLine, startColumn, e ndLine, endColumn, executionContextId, hash, executionContextAuxData, sourceMapU RL, hasSourceURL)
873 { 870 {
874 this._debuggerModel._parsedScriptSource(scriptId, sourceURL, startLine, startColumn, endLine, endColumn, executionContextId, hash, executionContextAuxDa ta, !!isInternalScript, false, sourceMapURL, hasSourceURL, true); 871 this._debuggerModel._parsedScriptSource(scriptId, sourceURL, startLine, startColumn, endLine, endColumn, executionContextId, hash, executionContextAuxDa ta, false, sourceMapURL, hasSourceURL, true);
875 }, 872 },
876 873
877 /** 874 /**
878 * @override 875 * @override
879 * @param {!DebuggerAgent.BreakpointId} breakpointId 876 * @param {!DebuggerAgent.BreakpointId} breakpointId
880 * @param {!DebuggerAgent.Location} location 877 * @param {!DebuggerAgent.Location} location
881 */ 878 */
882 breakpointResolved: function(breakpointId, location) 879 breakpointResolved: function(breakpointId, location)
883 { 880 {
884 this._debuggerModel._breakpointResolved(breakpointId, location); 881 this._debuggerModel._breakpointResolved(breakpointId, location);
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 /** 1274 /**
1278 * @param {?WebInspector.Target} target 1275 * @param {?WebInspector.Target} target
1279 * @return {?WebInspector.DebuggerModel} 1276 * @return {?WebInspector.DebuggerModel}
1280 */ 1277 */
1281 WebInspector.DebuggerModel.fromTarget = function(target) 1278 WebInspector.DebuggerModel.fromTarget = function(target)
1282 { 1279 {
1283 if (!target || !target.hasJSCapability()) 1280 if (!target || !target.hasJSCapability())
1284 return null; 1281 return null;
1285 return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector .DebuggerModel)); 1282 return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector .DebuggerModel));
1286 } 1283 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698