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

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

Issue 25029002: [DevTools] Enable deleting of a snippet by pressing delete key (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comment incorporated Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/NavigatorView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/SourcesNavigator.js
diff --git a/Source/devtools/front_end/SourcesNavigator.js b/Source/devtools/front_end/SourcesNavigator.js
index 7fc40c885c0efc77ed07810bef91a05894226c16..334800cc915965a29af018c65a10ae6d71de40b1 100644
--- a/Source/devtools/front_end/SourcesNavigator.js
+++ b/Source/devtools/front_end/SourcesNavigator.js
@@ -231,5 +231,13 @@ WebInspector.SnippetsNavigatorView.prototype = {
this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemCreationRequested, data);
},
+ /**
+ * @override
+ */
+ sourceDeleted: function(uiSourceCode)
+ {
+ this._handleRemoveSnippet(uiSourceCode);
+ },
+
__proto__: WebInspector.NavigatorView.prototype
}
« no previous file with comments | « Source/devtools/front_end/NavigatorView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698