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

Unified Diff: Source/devtools/front_end/ScriptsPanel.js

Issue 14672033: DevTools: Make snippets renaming work through SnippetsProjectDelegate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/ScriptsNavigator.js ('k') | Source/devtools/front_end/SnippetStorage.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ScriptsPanel.js
diff --git a/Source/devtools/front_end/ScriptsPanel.js b/Source/devtools/front_end/ScriptsPanel.js
index 9703e596eaf95576aa6f401b60a8ed78379cb3ce..142fc2b0cad8059de7c2984811937686850eeca3 100755
--- a/Source/devtools/front_end/ScriptsPanel.js
+++ b/Source/devtools/front_end/ScriptsPanel.js
@@ -100,7 +100,6 @@ WebInspector.ScriptsPanel = function(workspaceForTest)
this._navigator.addEventListener(WebInspector.ScriptsNavigator.Events.ItemSearchStarted, this._itemSearchStarted, this);
this._navigator.addEventListener(WebInspector.ScriptsNavigator.Events.SnippetCreationRequested, this._snippetCreationRequested, this);
this._navigator.addEventListener(WebInspector.ScriptsNavigator.Events.ItemRenamingRequested, this._itemRenamingRequested, this);
- this._navigator.addEventListener(WebInspector.ScriptsNavigator.Events.FileRenamed, this._fileRenamed, this);
this._editorContainer.addEventListener(WebInspector.TabbedEditorContainer.Events.EditorSelected, this._editorSelected, this);
this._editorContainer.addEventListener(WebInspector.TabbedEditorContainer.Events.EditorClosed, this._editorClosed, this);
@@ -1057,16 +1056,6 @@ WebInspector.ScriptsPanel.prototype = {
WebInspector.settings.debuggerSidebarHidden.set(true);
},
- _fileRenamed: function(event)
- {
- var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data.uiSourceCode);
- var name = /** @type {string} */ (event.data.name);
- if (uiSourceCode.project().type() !== WebInspector.projectTypes.Snippets)
- return;
- WebInspector.scriptSnippetModel.renameScriptSnippet(uiSourceCode, name);
- uiSourceCode.rename(name);
- },
-
/**
* @param {WebInspector.Event} event
*/
« no previous file with comments | « Source/devtools/front_end/ScriptsNavigator.js ('k') | Source/devtools/front_end/SnippetStorage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698