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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 this._cssModel = cssModel; | 43 this._cssModel = cssModel; |
44 this._workspace = workspace; | 44 this._workspace = workspace; |
45 this._networkWorkspaceBinding = networkWorkspaceBinding; | 45 this._networkWorkspaceBinding = networkWorkspaceBinding; |
46 this._addingRevisionCounter = 0; | 46 this._addingRevisionCounter = 0; |
47 this._reset(); | 47 this._reset(); |
48 WebInspector.fileManager.addEventListener(WebInspector.FileManager.EventType
s.SavedURL, this._fileSaveFinished, this); | 48 WebInspector.fileManager.addEventListener(WebInspector.FileManager.EventType
s.SavedURL, this._fileSaveFinished, this); |
49 WebInspector.settings.cssSourceMapsEnabled.addChangeListener(this._toggleSou
rceMapSupport, this) | 49 WebInspector.settings.cssSourceMapsEnabled.addChangeListener(this._toggleSou
rceMapSupport, this) |
50 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheet
Changed, this._styleSheetChanged, this); | 50 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheet
Changed, this._styleSheetChanged, this); |
51 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeA
dded, this._uiSourceCodeAdded, this); | 51 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeA
dded, this._uiSourceCodeAdded, this); |
52 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeC
ontentCommitted, this._uiSourceCodeContentCommitted, this); | 52 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeC
ontentCommitted, this._uiSourceCodeContentCommitted, this); |
53 this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectWillRe
set, this._reset, this); | 53 this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectRemove
d, this._reset, this); |
54 } | 54 } |
55 | 55 |
56 WebInspector.SASSSourceMapping.prototype = { | 56 WebInspector.SASSSourceMapping.prototype = { |
57 /** | 57 /** |
58 * @param {!WebInspector.Event} event | 58 * @param {!WebInspector.Event} event |
59 */ | 59 */ |
60 _styleSheetChanged: function(event) | 60 _styleSheetChanged: function(event) |
61 { | 61 { |
62 var id = /** @type {!CSSAgent.StyleSheetId} */ (event.data.styleSheetId)
; | 62 var id = /** @type {!CSSAgent.StyleSheetId} */ (event.data.styleSheetId)
; |
63 if (this._addingRevisionCounter) { | 63 if (this._addingRevisionCounter) { |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 this._cssURLsForSASSURL = {}; | 616 this._cssURLsForSASSURL = {}; |
617 /** @type {!Object.<string, !Array.<function(?WebInspector.SourceMap)>>}
*/ | 617 /** @type {!Object.<string, !Array.<function(?WebInspector.SourceMap)>>}
*/ |
618 this._pendingSourceMapLoadingCallbacks = {}; | 618 this._pendingSourceMapLoadingCallbacks = {}; |
619 /** @type {!Object.<string, !{deadlineMs: number, dataByURL: !Object.<st
ring, !{timer: number, previousPoll: number}>}>} */ | 619 /** @type {!Object.<string, !{deadlineMs: number, dataByURL: !Object.<st
ring, !{timer: number, previousPoll: number}>}>} */ |
620 this._pollDataForSASSURL = {}; | 620 this._pollDataForSASSURL = {}; |
621 /** @type {!Object.<string, !WebInspector.SourceMap>} */ | 621 /** @type {!Object.<string, !WebInspector.SourceMap>} */ |
622 this._sourceMapByURL = {}; | 622 this._sourceMapByURL = {}; |
623 this._sourceMapByStyleSheetURL = {}; | 623 this._sourceMapByStyleSheetURL = {}; |
624 } | 624 } |
625 } | 625 } |
OLD | NEW |