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/bindings/DebuggerWorkspaceBinding.js

Issue 2958403002: [WIP] DevTools: move UISourceCode creation into ResourceScriptMapping
Patch Set: pass everything but breakpointmanager Created 3 years, 5 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 * @unrestricted 5 * @unrestricted
6 * @implements {SDK.SDKModelObserver<!SDK.DebuggerModel>} 6 * @implements {SDK.SDKModelObserver<!SDK.DebuggerModel>}
7 */ 7 */
8 Bindings.DebuggerWorkspaceBinding = class { 8 Bindings.DebuggerWorkspaceBinding = class {
9 /** 9 /**
10 * @param {!SDK.TargetManager} targetManager 10 * @param {!SDK.TargetManager} targetManager
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 */ 244 */
245 constructor(debuggerModel, debuggerWorkspaceBinding) { 245 constructor(debuggerModel, debuggerWorkspaceBinding) {
246 this._debuggerModel = debuggerModel; 246 this._debuggerModel = debuggerModel;
247 this._debuggerWorkspaceBinding = debuggerWorkspaceBinding; 247 this._debuggerWorkspaceBinding = debuggerWorkspaceBinding;
248 248
249 /** @type {!Set.<!Bindings.DebuggerWorkspaceBinding.Location>} */ 249 /** @type {!Set.<!Bindings.DebuggerWorkspaceBinding.Location>} */
250 this.callFrameLocations = new Set(); 250 this.callFrameLocations = new Set();
251 251
252 var workspace = debuggerWorkspaceBinding._workspace; 252 var workspace = debuggerWorkspaceBinding._workspace;
253 253
254 this._resourceMapping = new Bindings.ResourceScriptMapping(debuggerModel, wo rkspace, debuggerWorkspaceBinding);
254 this._defaultMapping = new Bindings.DefaultScriptMapping(debuggerModel, work space, debuggerWorkspaceBinding); 255 this._defaultMapping = new Bindings.DefaultScriptMapping(debuggerModel, work space, debuggerWorkspaceBinding);
255 this._resourceMapping = new Bindings.ResourceScriptMapping(debuggerModel, wo rkspace, debuggerWorkspaceBinding);
256 this._compilerMapping = new Bindings.CompilerScriptMapping(debuggerModel, wo rkspace, debuggerWorkspaceBinding); 256 this._compilerMapping = new Bindings.CompilerScriptMapping(debuggerModel, wo rkspace, debuggerWorkspaceBinding);
257 257
258 /** @type {!Multimap<!SDK.Script, !Bindings.DebuggerWorkspaceBinding.Locatio n>} */ 258 /** @type {!Multimap<!SDK.Script, !Bindings.DebuggerWorkspaceBinding.Locatio n>} */
259 this._locations = new Multimap(); 259 this._locations = new Multimap();
260 260
261 debuggerModel.setBeforePausedCallback(this._beforePaused.bind(this)); 261 debuggerModel.setBeforePausedCallback(this._beforePaused.bind(this));
262 } 262 }
263 263
264 /** 264 /**
265 * @param {!SDK.DebuggerModel.Location} rawLocation 265 * @param {!SDK.DebuggerModel.Location} rawLocation
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 * @param {number} columnNumber 465 * @param {number} columnNumber
466 * @return {?SDK.DebuggerModel.Location} 466 * @return {?SDK.DebuggerModel.Location}
467 */ 467 */
468 uiLocationToRawLocation(uiSourceCode, lineNumber, columnNumber) {}, 468 uiLocationToRawLocation(uiSourceCode, lineNumber, columnNumber) {},
469 }; 469 };
470 470
471 /** 471 /**
472 * @type {!Bindings.DebuggerWorkspaceBinding} 472 * @type {!Bindings.DebuggerWorkspaceBinding}
473 */ 473 */
474 Bindings.debuggerWorkspaceBinding; 474 Bindings.debuggerWorkspaceBinding;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698