| 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 /** | 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 * @param {!Workspace.UILocation} uiLocation | 236 * @param {!Workspace.UILocation} uiLocation |
| 237 * @return {!Array<!SDK.CSSLocation>} | 237 * @return {!Array<!SDK.CSSLocation>} |
| 238 */ | 238 */ |
| 239 _uiLocationToRawLocations(uiLocation) { | 239 _uiLocationToRawLocations(uiLocation) { |
| 240 var rawLocations = this._sassSourceMapping.uiLocationToRawLocations(uiLocati
on); | 240 var rawLocations = this._sassSourceMapping.uiLocationToRawLocations(uiLocati
on); |
| 241 if (rawLocations.length) | 241 if (rawLocations.length) |
| 242 return rawLocations; | 242 return rawLocations; |
| 243 return this._stylesSourceMapping.uiLocationToRawLocations(uiLocation); | 243 return this._stylesSourceMapping.uiLocationToRawLocations(uiLocation); |
| 244 } | 244 } |
| 245 | 245 |
| 246 | |
| 247 _dispose() { | 246 _dispose() { |
| 248 Common.EventTarget.removeEventListeners(this._eventListeners); | 247 Common.EventTarget.removeEventListeners(this._eventListeners); |
| 249 this._stylesSourceMapping.dispose(); | 248 this._stylesSourceMapping.dispose(); |
| 250 this._sassSourceMapping.dispose(); | 249 this._sassSourceMapping.dispose(); |
| 251 } | 250 } |
| 252 }; | 251 }; |
| 253 | 252 |
| 254 /** | 253 /** |
| 255 * @unrestricted | 254 * @unrestricted |
| 256 */ | 255 */ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 */ | 294 */ |
| 296 isBlackboxed() { | 295 isBlackboxed() { |
| 297 return false; | 296 return false; |
| 298 } | 297 } |
| 299 }; | 298 }; |
| 300 | 299 |
| 301 /** | 300 /** |
| 302 * @type {!Bindings.CSSWorkspaceBinding} | 301 * @type {!Bindings.CSSWorkspaceBinding} |
| 303 */ | 302 */ |
| 304 Bindings.cssWorkspaceBinding; | 303 Bindings.cssWorkspaceBinding; |
| OLD | NEW |