| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 this._styleFiles = new Map(); | 46 this._styleFiles = new Map(); |
| 47 | 47 |
| 48 this._eventListeners = [ | 48 this._eventListeners = [ |
| 49 this._workspace.addEventListener(Workspace.Workspace.Events.ProjectRemoved
, this._projectRemoved, this), | 49 this._workspace.addEventListener(Workspace.Workspace.Events.ProjectRemoved
, this._projectRemoved, this), |
| 50 this._workspace.addEventListener( | 50 this._workspace.addEventListener( |
| 51 Workspace.Workspace.Events.UISourceCodeAdded, this._uiSourceCodeAddedT
oWorkspace, this), | 51 Workspace.Workspace.Events.UISourceCodeAdded, this._uiSourceCodeAddedT
oWorkspace, this), |
| 52 this._workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeRe
moved, this._uiSourceCodeRemoved, this), | 52 this._workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeRe
moved, this._uiSourceCodeRemoved, this), |
| 53 this._cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, this.
_styleSheetAdded, this), | 53 this._cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, this.
_styleSheetAdded, this), |
| 54 this._cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetRemoved, thi
s._styleSheetRemoved, this), | 54 this._cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetRemoved, thi
s._styleSheetRemoved, this), |
| 55 this._cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetChanged, thi
s._styleSheetChanged, this), | 55 this._cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetChanged, thi
s._styleSheetChanged, this), |
| 56 SDK.ResourceTreeModel.fromTarget(cssModel.target()) | 56 cssModel.target() |
| 57 .model(SDK.ResourceTreeModel) |
| 57 .addEventListener(SDK.ResourceTreeModel.Events.MainFrameNavigated, thi
s._unbindAllUISourceCodes, this) | 58 .addEventListener(SDK.ResourceTreeModel.Events.MainFrameNavigated, thi
s._unbindAllUISourceCodes, this) |
| 58 ]; | 59 ]; |
| 59 } | 60 } |
| 60 | 61 |
| 61 /** | 62 /** |
| 62 * @param {!SDK.CSSLocation} rawLocation | 63 * @param {!SDK.CSSLocation} rawLocation |
| 63 * @return {?Workspace.UILocation} | 64 * @return {?Workspace.UILocation} |
| 64 */ | 65 */ |
| 65 rawLocationToUILocation(rawLocation) { | 66 rawLocationToUILocation(rawLocation) { |
| 66 var header = rawLocation.header(); | 67 var header = rawLocation.header(); |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 358 |
| 358 dispose() { | 359 dispose() { |
| 359 if (this._terminated) | 360 if (this._terminated) |
| 360 return; | 361 return; |
| 361 this._terminated = true; | 362 this._terminated = true; |
| 362 Common.EventTarget.removeEventListeners(this._eventListeners); | 363 Common.EventTarget.removeEventListeners(this._eventListeners); |
| 363 } | 364 } |
| 364 }; | 365 }; |
| 365 | 366 |
| 366 Bindings.StyleFile.updateTimeout = 200; | 367 Bindings.StyleFile.updateTimeout = 200; |
| OLD | NEW |