| 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 * @constructor | 346 * @constructor |
| 347 * @extends {WebInspector.Object} | 347 * @extends {WebInspector.Object} |
| 348 */ | 348 */ |
| 349 WebInspector.Workspace = function() | 349 WebInspector.Workspace = function() |
| 350 { | 350 { |
| 351 /** @type {!Map<string, !WebInspector.Project>} */ | 351 /** @type {!Map<string, !WebInspector.Project>} */ |
| 352 this._projects = new Map(); | 352 this._projects = new Map(); |
| 353 this._hasResourceContentTrackingExtensions = false; | 353 this._hasResourceContentTrackingExtensions = false; |
| 354 } | 354 } |
| 355 | 355 |
| 356 /** @enum {symbol} */ |
| 356 WebInspector.Workspace.Events = { | 357 WebInspector.Workspace.Events = { |
| 357 UISourceCodeAdded: "UISourceCodeAdded", | 358 UISourceCodeAdded: Symbol("UISourceCodeAdded"), |
| 358 UISourceCodeRemoved: "UISourceCodeRemoved", | 359 UISourceCodeRemoved: Symbol("UISourceCodeRemoved"), |
| 359 WorkingCopyChanged: "WorkingCopyChanged", | 360 WorkingCopyChanged: Symbol("WorkingCopyChanged"), |
| 360 WorkingCopyCommitted: "WorkingCopyCommitted", | 361 WorkingCopyCommitted: Symbol("WorkingCopyCommitted"), |
| 361 WorkingCopyCommittedByUser: "WorkingCopyCommittedByUser", | 362 WorkingCopyCommittedByUser: Symbol("WorkingCopyCommittedByUser"), |
| 362 ProjectAdded: "ProjectAdded", | 363 ProjectAdded: Symbol("ProjectAdded"), |
| 363 ProjectRemoved: "ProjectRemoved" | 364 ProjectRemoved: Symbol("ProjectRemoved") |
| 364 } | 365 } |
| 365 | 366 |
| 366 WebInspector.Workspace.prototype = { | 367 WebInspector.Workspace.prototype = { |
| 367 /** | 368 /** |
| 368 * @return {!Array.<!WebInspector.UISourceCode>} | 369 * @return {!Array.<!WebInspector.UISourceCode>} |
| 369 */ | 370 */ |
| 370 unsavedSourceCodes: function() | 371 unsavedSourceCodes: function() |
| 371 { | 372 { |
| 372 /** | 373 /** |
| 373 * @param {!WebInspector.UISourceCode} sourceCode | 374 * @param {!WebInspector.UISourceCode} sourceCode |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 return this._hasResourceContentTrackingExtensions; | 501 return this._hasResourceContentTrackingExtensions; |
| 501 }, | 502 }, |
| 502 | 503 |
| 503 __proto__: WebInspector.Object.prototype | 504 __proto__: WebInspector.Object.prototype |
| 504 } | 505 } |
| 505 | 506 |
| 506 /** | 507 /** |
| 507 * @type {!WebInspector.Workspace} | 508 * @type {!WebInspector.Workspace} |
| 508 */ | 509 */ |
| 509 WebInspector.workspace; | 510 WebInspector.workspace; |
| OLD | NEW |