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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.TargetManager.Observer} 7 * @implements {WebInspector.TargetManager.Observer}
8 * @param {!WebInspector.TargetManager} targetManager 8 * @param {!WebInspector.TargetManager} targetManager
9 * @param {!WebInspector.Workspace} workspace 9 * @param {!WebInspector.Workspace} workspace
10 * @param {!WebInspector.NetworkMapping} networkMapping 10 * @param {!WebInspector.NetworkMapping} networkMapping
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 * @param {!WebInspector.Target} target 224 * @param {!WebInspector.Target} target
225 * @return {?WebInspector.ResourceScriptFile} 225 * @return {?WebInspector.ResourceScriptFile}
226 */ 226 */
227 scriptFile: function(uiSourceCode, target) 227 scriptFile: function(uiSourceCode, target)
228 { 228 {
229 var targetData = this._targetToData.get(target); 229 var targetData = this._targetToData.get(target);
230 return targetData ? targetData._resourceMapping.scriptFile(uiSourceCode) : null; 230 return targetData ? targetData._resourceMapping.scriptFile(uiSourceCode) : null;
231 }, 231 },
232 232
233 /** 233 /**
234 * @param {!WebInspector.Script} script
235 * @return {?WebInspector.SourceMap}
236 */
237 sourceMapForScript: function(script)
238 {
239 var targetData = this._targetToData.get(script.target());
240 if (!targetData)
241 return null;
242 return targetData._compilerMapping.sourceMapForScript(script);
243 },
244
245 /**
234 * @param {!WebInspector.Event} event 246 * @param {!WebInspector.Event} event
235 */ 247 */
236 _globalObjectCleared: function(event) 248 _globalObjectCleared: function(event)
237 { 249 {
238 var debuggerModel = /** @type {!WebInspector.DebuggerModel} */ (event.ta rget); 250 var debuggerModel = /** @type {!WebInspector.DebuggerModel} */ (event.ta rget);
239 this._reset(debuggerModel.target()); 251 this._reset(debuggerModel.target());
240 }, 252 },
241 253
242 /** 254 /**
243 * @param {!WebInspector.Target} target 255 * @param {!WebInspector.Target} target
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 * @param {number} lineNumber 574 * @param {number} lineNumber
563 * @return {boolean} 575 * @return {boolean}
564 */ 576 */
565 uiLineHasMapping: function(uiSourceCode, lineNumber) { } 577 uiLineHasMapping: function(uiSourceCode, lineNumber) { }
566 } 578 }
567 579
568 /** 580 /**
569 * @type {!WebInspector.DebuggerWorkspaceBinding} 581 * @type {!WebInspector.DebuggerWorkspaceBinding}
570 */ 582 */
571 WebInspector.debuggerWorkspaceBinding; 583 WebInspector.debuggerWorkspaceBinding;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698