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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 { | 725 { |
726 return this._fileSystemMapping.hasMappingForURL(url); | 726 return this._fileSystemMapping.hasMappingForURL(url); |
727 }, | 727 }, |
728 | 728 |
729 /** | 729 /** |
730 * @param {string} url | 730 * @param {string} url |
731 * @return {?WebInspector.UISourceCode} | 731 * @return {?WebInspector.UISourceCode} |
732 */ | 732 */ |
733 _networkUISourceCodeForURL: function(url) | 733 _networkUISourceCodeForURL: function(url) |
734 { | 734 { |
735 var splitURL = WebInspector.ParsedURL.splitURL(url); | 735 var splitURL = WebInspector.ParsedURL.splitURLIntoPathComponents(url); |
736 var projectId = splitURL[0]; | 736 var projectId = splitURL[0]; |
737 var project = this.project(projectId); | 737 var project = this.project(projectId); |
738 return project ? project.uiSourceCode(splitURL.slice(1).join("/")) : nul
l; | 738 return project ? project.uiSourceCode(splitURL.slice(1).join("/")) : nul
l; |
739 }, | 739 }, |
740 | 740 |
741 /** | 741 /** |
742 * @param {string} url | 742 * @param {string} url |
743 * @return {?WebInspector.UISourceCode} | 743 * @return {?WebInspector.UISourceCode} |
744 */ | 744 */ |
745 _contentScriptUISourceCodeForURL: function(url) | 745 _contentScriptUISourceCodeForURL: function(url) |
746 { | 746 { |
747 var splitURL = WebInspector.ParsedURL.splitURL(url); | 747 var splitURL = WebInspector.ParsedURL.splitURLIntoPathComponents(url); |
748 var projectId = "contentscripts:" + splitURL[0]; | 748 var projectId = "contentscripts:" + splitURL[0]; |
749 var project = this.project(projectId); | 749 var project = this.project(projectId); |
750 return project ? project.uiSourceCode(splitURL.slice(1).join("/")) : nul
l; | 750 return project ? project.uiSourceCode(splitURL.slice(1).join("/")) : nul
l; |
751 }, | 751 }, |
752 | 752 |
753 /** | 753 /** |
754 * @param {string} url | 754 * @param {string} url |
755 * @return {?WebInspector.UISourceCode} | 755 * @return {?WebInspector.UISourceCode} |
756 */ | 756 */ |
757 uiSourceCodeForURL: function(url) | 757 uiSourceCodeForURL: function(url) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 this.addEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, l
istener, this); | 843 this.addEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, l
istener, this); |
844 }, | 844 }, |
845 | 845 |
846 __proto__: WebInspector.Object.prototype | 846 __proto__: WebInspector.Object.prototype |
847 } | 847 } |
848 | 848 |
849 /** | 849 /** |
850 * @type {!WebInspector.Workspace} | 850 * @type {!WebInspector.Workspace} |
851 */ | 851 */ |
852 WebInspector.workspace; | 852 WebInspector.workspace; |
OLD | NEW |