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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js

Issue 2080893002: Close all sources command (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change to closeAllFiles Created 4 years, 6 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 | third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
index e96704fe77fa05c85c9575eb1441ec72d96744df..c0ec8ad20db772c883bf0d060f07869a6b5fc902 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
@@ -194,6 +194,11 @@ WebInspector.SourcesView.prototype = {
return this._currentUISourceCode;
},
+ closeAllFiles: function()
+ {
+ this._editorContainer.closeAllFiles();
+ },
+
/**
* @param {!Event=} event
*/
@@ -786,3 +791,28 @@ WebInspector.SourcesView.SwitchFileActionDelegate.prototype = {
return true;
}
}
+
+/**
+ * @constructor
+ * @implements {WebInspector.ActionDelegate}
+ */
+WebInspector.SourcesView.CloseAllActionDelegate = function(){
dgozman 2016/06/20 21:00:23 style: { on the next line
einbinder 2016/06/20 21:16:43 Done.
+
dgozman 2016/06/20 21:00:23 style: extra blank line
einbinder 2016/06/20 21:16:42 Done.
+}
+
+WebInspector.SourcesView.CloseAllActionDelegate.prototype = {
+ /**
+ * @override
+ * @param {!WebInspector.Context} context
+ * @param {string} actionId
+ * @return {boolean}
+ */
+ handleAction: function(context, actionId)
+ {
+ var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView)
dgozman 2016/06/20 21:00:23 style: missing semicolon
einbinder 2016/06/20 21:16:43 Done.
+ if (!sourcesView)
+ return false;
+ sourcesView.closeAllFiles();
dgozman 2016/06/20 21:00:23 This class is a part of SourcesView implementation
einbinder 2016/06/20 21:16:43 Done.
+ return true;
+ }
+}
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698