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

Unified Diff: Source/devtools/front_end/NavigatorView.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 | « no previous file | Source/devtools/front_end/SourcesNavigator.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/NavigatorView.js
diff --git a/Source/devtools/front_end/NavigatorView.js b/Source/devtools/front_end/NavigatorView.js
index 481ffe37bcf10d20d2035535883d997a4841e66f..7edca165fa4753707d63c5372d36b66b02a91bd8 100644
--- a/Source/devtools/front_end/NavigatorView.js
+++ b/Source/devtools/front_end/NavigatorView.js
@@ -184,6 +184,13 @@ WebInspector.NavigatorView.prototype = {
/**
* @param {WebInspector.UISourceCode} uiSourceCode
*/
+ sourceDeleted: function(uiSourceCode)
+ {
+ },
+
+ /**
+ * @param {WebInspector.UISourceCode} uiSourceCode
+ */
removeUISourceCode: function(uiSourceCode)
{
var node = this._uiSourceCodeNodes.get(uiSourceCode);
@@ -676,6 +683,12 @@ WebInspector.NavigatorSourceTreeElement.prototype = {
return true;
},
+ ondelete: function()
+ {
+ this._navigatorView.sourceDeleted(this.uiSourceCode);
+ return true;
+ },
+
/**
* @param {Event} event
*/
« no previous file with comments | « no previous file | Source/devtools/front_end/SourcesNavigator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698