OLD | NEW |
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 * @implements {SDK.TargetManager.Observer} | 5 * @implements {SDK.TargetManager.Observer} |
6 * @unrestricted | 6 * @unrestricted |
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 Loading... |
140 /** | 140 /** |
141 * @unrestricted | 141 * @unrestricted |
142 */ | 142 */ |
143 Bindings.CSSWorkspaceBinding.TargetInfo = class { | 143 Bindings.CSSWorkspaceBinding.TargetInfo = class { |
144 /** | 144 /** |
145 * @param {!SDK.CSSModel} cssModel | 145 * @param {!SDK.CSSModel} cssModel |
146 * @param {!Workspace.Workspace} workspace | 146 * @param {!Workspace.Workspace} workspace |
147 */ | 147 */ |
148 constructor(cssModel, workspace) { | 148 constructor(cssModel, workspace) { |
149 this._cssModel = cssModel; | 149 this._cssModel = cssModel; |
150 this._stylesSourceMapping = new Bindings.StylesSourceMapping(cssModel, works
pace); | 150 var networkProject = Bindings.NetworkProject.forTarget(cssModel.target()); |
151 this._sassSourceMapping = | 151 this._stylesSourceMapping = new Bindings.StylesSourceMapping(cssModel, netwo
rkProject); |
152 new Bindings.SASSSourceMapping(cssModel, workspace, Bindings.NetworkProj
ect.forTarget(cssModel.target())); | 152 this._sassSourceMapping = new Bindings.SASSSourceMapping(cssModel, workspace
, networkProject); |
153 | 153 |
154 /** @type {!Multimap<!SDK.CSSStyleSheetHeader, !Bindings.LiveLocation>} */ | 154 /** @type {!Multimap<!SDK.CSSStyleSheetHeader, !Bindings.LiveLocation>} */ |
155 this._locations = new Multimap(); | 155 this._locations = new Multimap(); |
156 } | 156 } |
157 | 157 |
158 /** | 158 /** |
159 * @param {!Bindings.CSSWorkspaceBinding.LiveLocation} location | 159 * @param {!Bindings.CSSWorkspaceBinding.LiveLocation} location |
160 */ | 160 */ |
161 _addLocation(location) { | 161 _addLocation(location) { |
162 var header = location._header; | 162 var header = location._header; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 */ | 294 */ |
295 isBlackboxed() { | 295 isBlackboxed() { |
296 return false; | 296 return false; |
297 } | 297 } |
298 }; | 298 }; |
299 | 299 |
300 /** | 300 /** |
301 * @type {!Bindings.CSSWorkspaceBinding} | 301 * @type {!Bindings.CSSWorkspaceBinding} |
302 */ | 302 */ |
303 Bindings.cssWorkspaceBinding; | 303 Bindings.cssWorkspaceBinding; |
OLD | NEW |