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 25 matching lines...) Expand all Loading... |
36 * @param {string} id | 36 * @param {string} id |
37 * @param {!WebInspector.projectTypes} type | 37 * @param {!WebInspector.projectTypes} type |
38 * @param {string} displayName | 38 * @param {string} displayName |
39 */ | 39 */ |
40 WebInspector.ContentProviderBasedProject = function(workspace, id, type, display
Name) | 40 WebInspector.ContentProviderBasedProject = function(workspace, id, type, display
Name) |
41 { | 41 { |
42 WebInspector.ProjectStore.call(this, workspace, id, type, displayName); | 42 WebInspector.ProjectStore.call(this, workspace, id, type, displayName); |
43 /** @type {!Object.<string, !WebInspector.ContentProvider>} */ | 43 /** @type {!Object.<string, !WebInspector.ContentProvider>} */ |
44 this._contentProviders = {}; | 44 this._contentProviders = {}; |
45 workspace.addProject(this); | 45 workspace.addProject(this); |
46 } | 46 }; |
47 | 47 |
48 WebInspector.ContentProviderBasedProject._metadata = Symbol("ContentProviderBase
dProject.Metadata"); | 48 WebInspector.ContentProviderBasedProject._metadata = Symbol("ContentProviderBase
dProject.Metadata"); |
49 | 49 |
50 WebInspector.ContentProviderBasedProject.prototype = { | 50 WebInspector.ContentProviderBasedProject.prototype = { |
51 /** | 51 /** |
52 * @override | 52 * @override |
53 * @param {!WebInspector.UISourceCode} uiSourceCode | 53 * @param {!WebInspector.UISourceCode} uiSourceCode |
54 * @param {function(?string)} callback | 54 * @param {function(?string)} callback |
55 */ | 55 */ |
56 requestFileContent: function(uiSourceCode, callback) | 56 requestFileContent: function(uiSourceCode, callback) |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 this.workspace().addProject(this); | 314 this.workspace().addProject(this); |
315 }, | 315 }, |
316 | 316 |
317 dispose: function() | 317 dispose: function() |
318 { | 318 { |
319 this._contentProviders = {}; | 319 this._contentProviders = {}; |
320 this.removeProject(); | 320 this.removeProject(); |
321 }, | 321 }, |
322 | 322 |
323 __proto__: WebInspector.ProjectStore.prototype | 323 __proto__: WebInspector.ProjectStore.prototype |
324 } | 324 }; |
OLD | NEW |