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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/Script.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 19 matching lines...) Expand all
30 * @param {!WebInspector.DebuggerModel} debuggerModel 30 * @param {!WebInspector.DebuggerModel} debuggerModel
31 * @param {string} scriptId 31 * @param {string} scriptId
32 * @param {string} sourceURL 32 * @param {string} sourceURL
33 * @param {number} startLine 33 * @param {number} startLine
34 * @param {number} startColumn 34 * @param {number} startColumn
35 * @param {number} endLine 35 * @param {number} endLine
36 * @param {number} endColumn 36 * @param {number} endColumn
37 * @param {!RuntimeAgent.ExecutionContextId} executionContextId 37 * @param {!RuntimeAgent.ExecutionContextId} executionContextId
38 * @param {string} hash 38 * @param {string} hash
39 * @param {boolean} isContentScript 39 * @param {boolean} isContentScript
40 * @param {boolean} isInternalScript
41 * @param {boolean} isLiveEdit 40 * @param {boolean} isLiveEdit
42 * @param {string=} sourceMapURL 41 * @param {string=} sourceMapURL
43 * @param {boolean=} hasSourceURL 42 * @param {boolean=} hasSourceURL
44 */ 43 */
45 WebInspector.Script = function(debuggerModel, scriptId, sourceURL, startLine, st artColumn, endLine, endColumn, executionContextId, hash, isContentScript, isInte rnalScript, isLiveEdit, sourceMapURL, hasSourceURL) 44 WebInspector.Script = function(debuggerModel, scriptId, sourceURL, startLine, st artColumn, endLine, endColumn, executionContextId, hash, isContentScript, isLive Edit, sourceMapURL, hasSourceURL)
46 { 45 {
47 WebInspector.SDKObject.call(this, debuggerModel.target()); 46 WebInspector.SDKObject.call(this, debuggerModel.target());
48 this.debuggerModel = debuggerModel; 47 this.debuggerModel = debuggerModel;
49 this.scriptId = scriptId; 48 this.scriptId = scriptId;
50 this.sourceURL = sourceURL; 49 this.sourceURL = sourceURL;
51 this.lineOffset = startLine; 50 this.lineOffset = startLine;
52 this.columnOffset = startColumn; 51 this.columnOffset = startColumn;
53 this.endLine = endLine; 52 this.endLine = endLine;
54 this.endColumn = endColumn; 53 this.endColumn = endColumn;
55 this._executionContextId = executionContextId; 54 this._executionContextId = executionContextId;
56 this.hash = hash; 55 this.hash = hash;
57 this._isContentScript = isContentScript; 56 this._isContentScript = isContentScript;
58 this._isInternalScript = isInternalScript;
59 this._isLiveEdit = isLiveEdit; 57 this._isLiveEdit = isLiveEdit;
60 this.sourceMapURL = sourceMapURL; 58 this.sourceMapURL = sourceMapURL;
61 this.hasSourceURL = hasSourceURL; 59 this.hasSourceURL = hasSourceURL;
62 } 60 }
63 61
64 WebInspector.Script.Events = { 62 WebInspector.Script.Events = {
65 ScriptEdited: "ScriptEdited", 63 ScriptEdited: "ScriptEdited",
66 SourceMapURLAdded: "SourceMapURLAdded" 64 SourceMapURLAdded: "SourceMapURLAdded"
67 } 65 }
68 66
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 WebInspector.Script.prototype = { 116 WebInspector.Script.prototype = {
119 /** 117 /**
120 * @return {boolean} 118 * @return {boolean}
121 */ 119 */
122 isContentScript: function() 120 isContentScript: function()
123 { 121 {
124 return this._isContentScript; 122 return this._isContentScript;
125 }, 123 },
126 124
127 /** 125 /**
128 * @return {boolean}
129 */
130 isInternalScript: function()
131 {
132 return this._isInternalScript;
133 },
134
135 /**
136 * @return {?WebInspector.ExecutionContext} 126 * @return {?WebInspector.ExecutionContext}
137 */ 127 */
138 executionContext: function() 128 executionContext: function()
139 { 129 {
140 return this.target().runtimeModel.executionContext(this._executionContex tId); 130 return this.target().runtimeModel.executionContext(this._executionContex tId);
141 }, 131 },
142 132
143 /** 133 /**
144 * @return {boolean} 134 * @return {boolean}
145 */ 135 */
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 { 333 {
344 if (error) 334 if (error)
345 console.error(error); 335 console.error(error);
346 fulfill(!error); 336 fulfill(!error);
347 } 337 }
348 } 338 }
349 }, 339 },
350 340
351 __proto__: WebInspector.SDKObject.prototype 341 __proto__: WebInspector.SDKObject.prototype
352 } 342 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698