| 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 project: function(projectId) | 450 project: function(projectId) |
| 451 { | 451 { |
| 452 return this._projects.get(projectId) || null; | 452 return this._projects.get(projectId) || null; |
| 453 }, | 453 }, |
| 454 | 454 |
| 455 /** | 455 /** |
| 456 * @return {!Array.<!WebInspector.Project>} | 456 * @return {!Array.<!WebInspector.Project>} |
| 457 */ | 457 */ |
| 458 projects: function() | 458 projects: function() |
| 459 { | 459 { |
| 460 return Array.from(this._projects.values()); | 460 return this._projects.valuesArray(); |
| 461 }, | 461 }, |
| 462 | 462 |
| 463 /** | 463 /** |
| 464 * @param {string} type | 464 * @param {string} type |
| 465 * @return {!Array.<!WebInspector.Project>} | 465 * @return {!Array.<!WebInspector.Project>} |
| 466 */ | 466 */ |
| 467 projectsForType: function(type) | 467 projectsForType: function(type) |
| 468 { | 468 { |
| 469 function filterByType(project) | 469 function filterByType(project) |
| 470 { | 470 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 500 return this._hasResourceContentTrackingExtensions; | 500 return this._hasResourceContentTrackingExtensions; |
| 501 }, | 501 }, |
| 502 | 502 |
| 503 __proto__: WebInspector.Object.prototype | 503 __proto__: WebInspector.Object.prototype |
| 504 } | 504 } |
| 505 | 505 |
| 506 /** | 506 /** |
| 507 * @type {!WebInspector.Workspace} | 507 * @type {!WebInspector.Workspace} |
| 508 */ | 508 */ |
| 509 WebInspector.workspace; | 509 WebInspector.workspace; |
| OLD | NEW |