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

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

Issue 2515583002: DevTools: move FileSystemWorkspaceBinding under persistence/ (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 Sources.SelectUISourceCodeForProjectTypesDialog.show( 743 Sources.SelectUISourceCodeForProjectTypesDialog.show(
744 uiSourceCode.name(), [Workspace.projectTypes.Network, Workspace.projectT ypes.ContentScripts], 744 uiSourceCode.name(), [Workspace.projectTypes.Network, Workspace.projectT ypes.ContentScripts],
745 mapFileSystemToNetwork); 745 mapFileSystemToNetwork);
746 746
747 /** 747 /**
748 * @param {?Workspace.UISourceCode} networkUISourceCode 748 * @param {?Workspace.UISourceCode} networkUISourceCode
749 */ 749 */
750 function mapFileSystemToNetwork(networkUISourceCode) { 750 function mapFileSystemToNetwork(networkUISourceCode) {
751 if (!networkUISourceCode) 751 if (!networkUISourceCode)
752 return; 752 return;
753 var fileSystemPath = Bindings.FileSystemWorkspaceBinding.fileSystemPath(ui SourceCode.project().id()); 753 var fileSystemPath = Persistence.FileSystemWorkspaceBinding.fileSystemPath (uiSourceCode.project().id());
754 Workspace.fileSystemMapping.addMappingForResource(networkUISourceCode.url( ), fileSystemPath, uiSourceCode.url()); 754 Workspace.fileSystemMapping.addMappingForResource(networkUISourceCode.url( ), fileSystemPath, uiSourceCode.url());
755 } 755 }
756 } 756 }
757 757
758 /** 758 /**
759 * @param {!Workspace.UISourceCode} networkUISourceCode 759 * @param {!Workspace.UISourceCode} networkUISourceCode
760 */ 760 */
761 mapNetworkToFileSystem(networkUISourceCode) { 761 mapNetworkToFileSystem(networkUISourceCode) {
762 Sources.SelectUISourceCodeForProjectTypesDialog.show( 762 Sources.SelectUISourceCodeForProjectTypesDialog.show(
763 networkUISourceCode.name(), [Workspace.projectTypes.FileSystem], mapNetw orkToFileSystem); 763 networkUISourceCode.name(), [Workspace.projectTypes.FileSystem], mapNetw orkToFileSystem);
764 764
765 /** 765 /**
766 * @param {?Workspace.UISourceCode} uiSourceCode 766 * @param {?Workspace.UISourceCode} uiSourceCode
767 */ 767 */
768 function mapNetworkToFileSystem(uiSourceCode) { 768 function mapNetworkToFileSystem(uiSourceCode) {
769 if (!uiSourceCode) 769 if (!uiSourceCode)
770 return; 770 return;
771 var fileSystemPath = Bindings.FileSystemWorkspaceBinding.fileSystemPath(ui SourceCode.project().id()); 771 var fileSystemPath = Persistence.FileSystemWorkspaceBinding.fileSystemPath (uiSourceCode.project().id());
772 Workspace.fileSystemMapping.addMappingForResource(networkUISourceCode.url( ), fileSystemPath, uiSourceCode.url()); 772 Workspace.fileSystemMapping.addMappingForResource(networkUISourceCode.url( ), fileSystemPath, uiSourceCode.url());
773 } 773 }
774 } 774 }
775 775
776 /** 776 /**
777 * @param {!Workspace.UISourceCode} uiSourceCode 777 * @param {!Workspace.UISourceCode} uiSourceCode
778 */ 778 */
779 _removeNetworkMapping(uiSourceCode) { 779 _removeNetworkMapping(uiSourceCode) {
780 Workspace.fileSystemMapping.removeMappingForURL(uiSourceCode.url()); 780 Workspace.fileSystemMapping.removeMappingForURL(uiSourceCode.url());
781 } 781 }
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 */ 1322 */
1323 willHide() { 1323 willHide() {
1324 UI.inspectorView.setDrawerMinimized(false); 1324 UI.inspectorView.setDrawerMinimized(false);
1325 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc es.SourcesPanel.instance())); 1325 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc es.SourcesPanel.instance()));
1326 } 1326 }
1327 1327
1328 _showViewInWrapper() { 1328 _showViewInWrapper() {
1329 this._view.show(this.element); 1329 this._view.show(this.element);
1330 } 1330 }
1331 }; 1331 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698