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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 for (var i = 0; i < projects.length; ++i) { | 623 for (var i = 0; i < projects.length; ++i) { |
624 var project = projects[i]; | 624 var project = projects[i]; |
625 var uiSourceCode = project.uiSourceCodeForOriginURL(originURL); | 625 var uiSourceCode = project.uiSourceCodeForOriginURL(originURL); |
626 if (uiSourceCode) | 626 if (uiSourceCode) |
627 return uiSourceCode; | 627 return uiSourceCode; |
628 } | 628 } |
629 return null; | 629 return null; |
630 }, | 630 }, |
631 | 631 |
632 /** | 632 /** |
| 633 * @param {string} originURL |
| 634 * @return {?WebInspector.UISourceCode} |
| 635 */ |
| 636 filesystemUISourceCode: function(originURL) |
| 637 { |
| 638 var projects = this.projectsForType(WebInspector.projectTypes.FileSystem
); |
| 639 for (var i = 0; i < projects.length; ++i) { |
| 640 var project = projects[i]; |
| 641 var uiSourceCode = project.uiSourceCodeForOriginURL(originURL); |
| 642 if (uiSourceCode) |
| 643 return uiSourceCode; |
| 644 } |
| 645 return null; |
| 646 }, |
| 647 |
| 648 /** |
633 * @param {string} type | 649 * @param {string} type |
634 * @return {!Array.<!WebInspector.UISourceCode>} | 650 * @return {!Array.<!WebInspector.UISourceCode>} |
635 */ | 651 */ |
636 uiSourceCodesForProjectType: function(type) | 652 uiSourceCodesForProjectType: function(type) |
637 { | 653 { |
638 var result = []; | 654 var result = []; |
639 for (var projectName in this._projects) { | 655 for (var projectName in this._projects) { |
640 var project = this._projects[projectName]; | 656 var project = this._projects[projectName]; |
641 if (project.type() === type) | 657 if (project.type() === type) |
642 result = result.concat(project.uiSourceCodes()); | 658 result = result.concat(project.uiSourceCodes()); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 return this._hasResourceContentTrackingExtensions; | 744 return this._hasResourceContentTrackingExtensions; |
729 }, | 745 }, |
730 | 746 |
731 __proto__: WebInspector.Object.prototype | 747 __proto__: WebInspector.Object.prototype |
732 } | 748 } |
733 | 749 |
734 /** | 750 /** |
735 * @type {!WebInspector.Workspace} | 751 * @type {!WebInspector.Workspace} |
736 */ | 752 */ |
737 WebInspector.workspace; | 753 WebInspector.workspace; |
OLD | NEW |