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

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

Issue 2893073002: DevTools: introduce ResourceMapping (Closed)
Patch Set: address comments Created 3 years, 6 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 222 }
223 223
224 /** 224 /**
225 * @param {!SDK.CSSLocation} rawLocation 225 * @param {!SDK.CSSLocation} rawLocation
226 * @return {?Workspace.UILocation} 226 * @return {?Workspace.UILocation}
227 */ 227 */
228 _rawLocationToUILocation(rawLocation) { 228 _rawLocationToUILocation(rawLocation) {
229 var uiLocation = null; 229 var uiLocation = null;
230 uiLocation = uiLocation || this._sassSourceMapping.rawLocationToUILocation(r awLocation); 230 uiLocation = uiLocation || this._sassSourceMapping.rawLocationToUILocation(r awLocation);
231 uiLocation = uiLocation || this._stylesSourceMapping.rawLocationToUILocation (rawLocation); 231 uiLocation = uiLocation || this._stylesSourceMapping.rawLocationToUILocation (rawLocation);
232 uiLocation = uiLocation || Bindings.resourceBindingManager.cssLocationToUILo cation(rawLocation);
lushnikov 2017/06/12 23:17:53 Rename: Bindings.ResourceBingindManager -> Binding
lushnikov 2017/06/13 00:49:13 Done.
232 return uiLocation; 233 return uiLocation;
233 } 234 }
234 235
235 /** 236 /**
236 * @param {!Workspace.UILocation} uiLocation 237 * @param {!Workspace.UILocation} uiLocation
237 * @return {!Array<!SDK.CSSLocation>} 238 * @return {!Array<!SDK.CSSLocation>}
238 */ 239 */
239 _uiLocationToRawLocations(uiLocation) { 240 _uiLocationToRawLocations(uiLocation) {
240 var rawLocations = this._sassSourceMapping.uiLocationToRawLocations(uiLocati on); 241 var rawLocations = this._sassSourceMapping.uiLocationToRawLocations(uiLocati on);
241 if (rawLocations.length) 242 if (rawLocations.length)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 */ 295 */
295 isBlackboxed() { 296 isBlackboxed() {
296 return false; 297 return false;
297 } 298 }
298 }; 299 };
299 300
300 /** 301 /**
301 * @type {!Bindings.CSSWorkspaceBinding} 302 * @type {!Bindings.CSSWorkspaceBinding}
302 */ 303 */
303 Bindings.cssWorkspaceBinding; 304 Bindings.cssWorkspaceBinding;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698