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

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

Issue 1356363002: [DevTools] Remove relativeToElement from Dialog. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 { 833 {
834 if (window.confirm(WebInspector.UIString("It is recommended to restart i nspector after making these changes. Would you like to restart it?"))) 834 if (window.confirm(WebInspector.UIString("It is recommended to restart i nspector after making these changes. Would you like to restart it?")))
835 WebInspector.reload(); 835 WebInspector.reload();
836 }, 836 },
837 837
838 /** 838 /**
839 * @param {!WebInspector.UISourceCode} uiSourceCode 839 * @param {!WebInspector.UISourceCode} uiSourceCode
840 */ 840 */
841 mapFileSystemToNetwork: function(uiSourceCode) 841 mapFileSystemToNetwork: function(uiSourceCode)
842 { 842 {
843 WebInspector.SelectUISourceCodeForProjectTypesDialog.show(uiSourceCode.n ame(), [WebInspector.projectTypes.Network, WebInspector.projectTypes.ContentScri pts], mapFileSystemToNetwork.bind(this), this._sourcesView.element); 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, W ebInspector.fileSystemWorkspaceBinding);
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), this._sourcesView.element); 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, W ebInspector.fileSystemWorkspaceBinding);
(...skipping 575 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
« no previous file with comments | « Source/devtools/front_end/sources/JavaScriptSourceFrame.js ('k') | Source/devtools/front_end/sources/SourcesView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698