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

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

Issue 2418813005: DevTools: [Persistence] implement automapping (Closed)
Patch Set: address comments 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/settings/editFileSystemView.css ('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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 this._networkMapping.removeMapping(uiSourceCode); 788 this._networkMapping.removeMapping(uiSourceCode);
789 }, 789 },
790 790
791 /** 791 /**
792 * @param {!WebInspector.ContextMenu} contextMenu 792 * @param {!WebInspector.ContextMenu} contextMenu
793 * @param {!WebInspector.UISourceCode} uiSourceCode 793 * @param {!WebInspector.UISourceCode} uiSourceCode
794 */ 794 */
795 _appendUISourceCodeMappingItems: function(contextMenu, uiSourceCode) 795 _appendUISourceCodeMappingItems: function(contextMenu, uiSourceCode)
796 { 796 {
797 WebInspector.NavigatorView.appendAddFolderItem(contextMenu); 797 WebInspector.NavigatorView.appendAddFolderItem(contextMenu);
798
799 if (Runtime.experiments.isEnabled("persistence2"))
800 return;
798 if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSyst em) { 801 if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSyst em) {
799 var binding = WebInspector.persistence.binding(uiSourceCode); 802 var binding = WebInspector.persistence.binding(uiSourceCode);
800 if (!binding) 803 if (!binding)
801 contextMenu.appendItem(WebInspector.UIString.capitalize("Map to ^network ^resource\u2026"), this.mapFileSystemToNetwork.bind(this, uiSourceCode) ); 804 contextMenu.appendItem(WebInspector.UIString.capitalize("Map to ^network ^resource\u2026"), this.mapFileSystemToNetwork.bind(this, uiSourceCode) );
802 else 805 else
803 contextMenu.appendItem(WebInspector.UIString.capitalize("Remove ^network ^mapping"), this._removeNetworkMapping.bind(this, binding.network)); 806 contextMenu.appendItem(WebInspector.UIString.capitalize("Remove ^network ^mapping"), this._removeNetworkMapping.bind(this, binding.network));
804 } 807 }
805 808
806 /** 809 /**
807 * @param {!WebInspector.Project} project 810 * @param {!WebInspector.Project} project
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 __proto__: WebInspector.VBox.prototype 1388 __proto__: WebInspector.VBox.prototype
1386 }; 1389 };
1387 1390
1388 /** 1391 /**
1389 * @return {boolean} 1392 * @return {boolean}
1390 */ 1393 */
1391 WebInspector.SourcesPanel.WrapperView.isShowing = function() 1394 WebInspector.SourcesPanel.WrapperView.isShowing = function()
1392 { 1395 {
1393 return !!WebInspector.SourcesPanel.WrapperView._instance && WebInspector.Sou rcesPanel.WrapperView._instance.isShowing(); 1396 return !!WebInspector.SourcesPanel.WrapperView._instance && WebInspector.Sou rcesPanel.WrapperView._instance.isShowing();
1394 }; 1397 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/settings/editFileSystemView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698