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

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: 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
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..e97420d0b42c36b99528b7a1854af3e6030bca76 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
}
« Source/devtools/front_end/NavigatorView.js ('K') | « Source/devtools/front_end/NavigatorView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698