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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js

Issue 2869293002: DevTools: make CompilerScriptMapping / SASSSourceMapping manage UISourceCodes (Closed)
Patch Set: address comments Created 3 years, 7 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 * @implements {SDK.SDKModelObserver<!SDK.CSSModel>} 6 * @implements {SDK.SDKModelObserver<!SDK.CSSModel>}
7 */ 7 */
8 Bindings.CSSWorkspaceBinding = class { 8 Bindings.CSSWorkspaceBinding = class {
9 /** 9 /**
10 * @param {!SDK.TargetManager} targetManager 10 * @param {!SDK.TargetManager} targetManager
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 * @param {!Workspace.Workspace} workspace 140 * @param {!Workspace.Workspace} workspace
141 */ 141 */
142 constructor(cssModel, workspace) { 142 constructor(cssModel, workspace) {
143 this._eventListeners = [ 143 this._eventListeners = [
144 cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, this._style SheetAdded, this), 144 cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, this._style SheetAdded, this),
145 cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetRemoved, this._sty leSheetRemoved, this) 145 cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetRemoved, this._sty leSheetRemoved, this)
146 ]; 146 ];
147 147
148 this._stylesSourceMapping = new Bindings.StylesSourceMapping(cssModel, works pace); 148 this._stylesSourceMapping = new Bindings.StylesSourceMapping(cssModel, works pace);
149 var sourceMapManager = cssModel.sourceMapManager(); 149 var sourceMapManager = cssModel.sourceMapManager();
150 this._sassSourceMapping = new Bindings.SASSSourceMapping( 150 this._sassSourceMapping = new Bindings.SASSSourceMapping(cssModel.target(), sourceMapManager, workspace);
151 sourceMapManager, workspace, Bindings.NetworkProject.forTarget(cssModel. target()));
152 151
153 /** @type {!Multimap<!SDK.CSSStyleSheetHeader, !Bindings.CSSWorkspaceBinding .LiveLocation>} */ 152 /** @type {!Multimap<!SDK.CSSStyleSheetHeader, !Bindings.CSSWorkspaceBinding .LiveLocation>} */
154 this._locations = new Multimap(); 153 this._locations = new Multimap();
155 /** @type {!Multimap<string, !Bindings.CSSWorkspaceBinding.LiveLocation>} */ 154 /** @type {!Multimap<string, !Bindings.CSSWorkspaceBinding.LiveLocation>} */
156 this._unboundLocations = new Multimap(); 155 this._unboundLocations = new Multimap();
157 } 156 }
158 157
159 /** 158 /**
160 * @param {!SDK.CSSLocation} rawLocation 159 * @param {!SDK.CSSLocation} rawLocation
161 * @param {function(!Bindings.LiveLocation)} updateDelegate 160 * @param {function(!Bindings.LiveLocation)} updateDelegate
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 */ 295 */
297 isBlackboxed() { 296 isBlackboxed() {
298 return false; 297 return false;
299 } 298 }
300 }; 299 };
301 300
302 /** 301 /**
303 * @type {!Bindings.CSSWorkspaceBinding} 302 * @type {!Bindings.CSSWorkspaceBinding}
304 */ 303 */
305 Bindings.cssWorkspaceBinding; 304 Bindings.cssWorkspaceBinding;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698