Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js

Issue 1363993007: DevTools: remove UISourceCode.networkURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 WebInspector.SelectUISourceCodeForProjectTypesDialog.show(uiSourceCode.n ame(), [WebInspector.projectTypes.Network, WebInspector.projectTypes.ContentScri pts], mapFileSystemToNetwork.bind(this)); 843 WebInspector.SelectUISourceCodeForProjectTypesDialog.show(uiSourceCode.n ame(), [WebInspector.projectTypes.Network, WebInspector.projectTypes.ContentScri pts], mapFileSystemToNetwork.bind(this));
844 844
845 /** 845 /**
846 * @param {?WebInspector.UISourceCode} networkUISourceCode 846 * @param {?WebInspector.UISourceCode} networkUISourceCode
847 * @this {WebInspector.SourcesPanel} 847 * @this {WebInspector.SourcesPanel}
848 */ 848 */
849 function mapFileSystemToNetwork(networkUISourceCode) 849 function mapFileSystemToNetwork(networkUISourceCode)
850 { 850 {
851 if (!networkUISourceCode) 851 if (!networkUISourceCode)
852 return; 852 return;
853 this._networkMapping.addMapping(networkUISourceCode, uiSourceCode, W ebInspector.fileSystemWorkspaceBinding); 853 this._networkMapping.addMapping(networkUISourceCode, uiSourceCode);
854 this._suggestReload(); 854 this._suggestReload();
855 } 855 }
856 }, 856 },
857 857
858 /** 858 /**
859 * @param {!WebInspector.UISourceCode} networkUISourceCode 859 * @param {!WebInspector.UISourceCode} networkUISourceCode
860 */ 860 */
861 mapNetworkToFileSystem: function(networkUISourceCode) 861 mapNetworkToFileSystem: function(networkUISourceCode)
862 { 862 {
863 WebInspector.SelectUISourceCodeForProjectTypesDialog.show(networkUISourc eCode.name(), [WebInspector.projectTypes.FileSystem], mapNetworkToFileSystem.bin d(this)); 863 WebInspector.SelectUISourceCodeForProjectTypesDialog.show(networkUISourc eCode.name(), [WebInspector.projectTypes.FileSystem], mapNetworkToFileSystem.bin d(this));
864 864
865 /** 865 /**
866 * @param {?WebInspector.UISourceCode} uiSourceCode 866 * @param {?WebInspector.UISourceCode} uiSourceCode
867 * @this {WebInspector.SourcesPanel} 867 * @this {WebInspector.SourcesPanel}
868 */ 868 */
869 function mapNetworkToFileSystem(uiSourceCode) 869 function mapNetworkToFileSystem(uiSourceCode)
870 { 870 {
871 if (!uiSourceCode) 871 if (!uiSourceCode)
872 return; 872 return;
873 this._networkMapping.addMapping(networkUISourceCode, uiSourceCode, W ebInspector.fileSystemWorkspaceBinding); 873 this._networkMapping.addMapping(networkUISourceCode, uiSourceCode);
874 this._suggestReload(); 874 this._suggestReload();
875 } 875 }
876 }, 876 },
877 877
878 /** 878 /**
879 * @param {!WebInspector.UISourceCode} uiSourceCode 879 * @param {!WebInspector.UISourceCode} uiSourceCode
880 */ 880 */
881 _removeNetworkMapping: function(uiSourceCode) 881 _removeNetworkMapping: function(uiSourceCode)
882 { 882 {
883 if (confirm(WebInspector.UIString("Are you sure you want to remove netwo rk mapping?"))) { 883 if (confirm(WebInspector.UIString("Are you sure you want to remove netwo rk mapping?"))) {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 WebInspector.SourcesPanelFactory.prototype = { 1449 WebInspector.SourcesPanelFactory.prototype = {
1450 /** 1450 /**
1451 * @override 1451 * @override
1452 * @return {!WebInspector.Panel} 1452 * @return {!WebInspector.Panel}
1453 */ 1453 */
1454 createPanel: function() 1454 createPanel: function()
1455 { 1455 {
1456 return WebInspector.SourcesPanel.instance(); 1456 return WebInspector.SourcesPanel.instance();
1457 } 1457 }
1458 } 1458 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698