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

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

Issue 1663723002: [DevTools] Add sourceMap support for blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@call-set-blackboxed-ranges-on-script-parsed
Patch Set: Created 4 years, 10 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 this._isContentScript = isContentScript; 55 this._isContentScript = isContentScript;
56 this._isInternalScript = isInternalScript; 56 this._isInternalScript = isInternalScript;
57 this._isLiveEdit = isLiveEdit; 57 this._isLiveEdit = isLiveEdit;
58 this.sourceMapURL = sourceMapURL; 58 this.sourceMapURL = sourceMapURL;
59 this.hasSourceURL = hasSourceURL; 59 this.hasSourceURL = hasSourceURL;
60 } 60 }
61 61
62 WebInspector.Script.Events = { 62 WebInspector.Script.Events = {
63 ScriptEdited: "ScriptEdited", 63 ScriptEdited: "ScriptEdited",
64 SourceMapURLAdded: "SourceMapURLAdded", 64 SourceMapURLAdded: "SourceMapURLAdded",
65 SourceMapLoaded: "SourceMapLoaded"
65 } 66 }
66 67
67 WebInspector.Script.sourceURLRegex = /^[\040\t]*\/\/# sourceURL=\s*(\S*?)\s*$/m; 68 WebInspector.Script.sourceURLRegex = /^[\040\t]*\/\/# sourceURL=\s*(\S*?)\s*$/m;
68 69
69 /** 70 /**
70 * @param {string} source 71 * @param {string} source
71 * @return {string} 72 * @return {string}
72 */ 73 */
73 WebInspector.Script._trimSourceURLComment = function(source) 74 WebInspector.Script._trimSourceURLComment = function(source)
74 { 75 {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 /** 293 /**
293 * @param {!Array<!DebuggerAgent.ScriptPosition>} positions 294 * @param {!Array<!DebuggerAgent.ScriptPosition>} positions
294 */ 295 */
295 setBlackboxedRanges: function(positions) 296 setBlackboxedRanges: function(positions)
296 { 297 {
297 this.target().debuggerAgent().setBlackboxedRanges(this.scriptId, positio ns); 298 this.target().debuggerAgent().setBlackboxedRanges(this.scriptId, positio ns);
298 }, 299 },
299 300
300 __proto__: WebInspector.SDKObject.prototype 301 __proto__: WebInspector.SDKObject.prototype
301 } 302 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698