| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 var paths = /** @type {!Array<string>} */ (event.data); | 156 var paths = /** @type {!Array<string>} */ (event.data); |
| 157 for (var path of paths) { | 157 for (var path of paths) { |
| 158 for (var key of this._boundFileSystems.keys()) { | 158 for (var key of this._boundFileSystems.keys()) { |
| 159 if (!path.startsWith(key)) | 159 if (!path.startsWith(key)) |
| 160 continue; | 160 continue; |
| 161 this._boundFileSystems.get(key)._fileChanged(path); | 161 this._boundFileSystems.get(key)._fileChanged(path); |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 }, | 164 }, |
| 165 | 165 |
| 166 /** | |
| 167 * @param {string} projectId | |
| 168 * @return {string} | |
| 169 */ | |
| 170 fileSystemPath: function(projectId) | |
| 171 { | |
| 172 return projectId; | |
| 173 }, | |
| 174 | |
| 175 dispose: function() | 166 dispose: function() |
| 176 { | 167 { |
| 177 WebInspector.EventTarget.removeEventListeners(this._eventListeners); | 168 WebInspector.EventTarget.removeEventListeners(this._eventListeners); |
| 178 for (var fileSystem of this._boundFileSystems.values()) { | 169 for (var fileSystem of this._boundFileSystems.values()) { |
| 179 fileSystem.dispose(); | 170 fileSystem.dispose(); |
| 180 this._boundFileSystems.remove(fileSystem._fileSystem.path()); | 171 this._boundFileSystems.remove(fileSystem._fileSystem.path()); |
| 181 } | 172 } |
| 182 } | 173 } |
| 183 } | 174 } |
| 184 | 175 |
| 185 /** | 176 /** |
| 177 * @param {string} projectId |
| 178 * @return {string} |
| 179 */ |
| 180 WebInspector.FileSystemWorkspaceBinding.fileSystemPath = function(projectId) |
| 181 { |
| 182 return projectId; |
| 183 } |
| 184 |
| 185 /** |
| 186 * @constructor | 186 * @constructor |
| 187 * @extends {WebInspector.ProjectStore} | 187 * @extends {WebInspector.ProjectStore} |
| 188 * @implements {WebInspector.Project} | 188 * @implements {WebInspector.Project} |
| 189 * @param {!WebInspector.FileSystemWorkspaceBinding} fileSystemWorkspaceBinding | 189 * @param {!WebInspector.FileSystemWorkspaceBinding} fileSystemWorkspaceBinding |
| 190 * @param {!WebInspector.IsolatedFileSystem} isolatedFileSystem | 190 * @param {!WebInspector.IsolatedFileSystem} isolatedFileSystem |
| 191 * @param {!WebInspector.Workspace} workspace | 191 * @param {!WebInspector.Workspace} workspace |
| 192 */ | 192 */ |
| 193 WebInspector.FileSystemWorkspaceBinding.FileSystem = function(fileSystemWorkspac
eBinding, isolatedFileSystem, workspace) | 193 WebInspector.FileSystemWorkspaceBinding.FileSystem = function(fileSystemWorkspac
eBinding, isolatedFileSystem, workspace) |
| 194 { | 194 { |
| 195 this._fileSystemWorkspaceBinding = fileSystemWorkspaceBinding; | 195 this._fileSystemWorkspaceBinding = fileSystemWorkspaceBinding; |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 uiSourceCode.checkContentUpdated(); | 534 uiSourceCode.checkContentUpdated(); |
| 535 }, | 535 }, |
| 536 | 536 |
| 537 dispose: function() | 537 dispose: function() |
| 538 { | 538 { |
| 539 this.removeProject(); | 539 this.removeProject(); |
| 540 }, | 540 }, |
| 541 | 541 |
| 542 __proto__: WebInspector.ProjectStore.prototype | 542 __proto__: WebInspector.ProjectStore.prototype |
| 543 } | 543 } |
| OLD | NEW |