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; |
+ } |
+} |