| 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..270a9eec694fcb9169a92b62e8539e2e272f11c1 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
|
| @@ -786,3 +786,28 @@ WebInspector.SourcesView.SwitchFileActionDelegate.prototype = {
|
| return true;
|
| }
|
| }
|
| +
|
| +/**
|
| + * @constructor
|
| + * @implements {WebInspector.ActionDelegate}
|
| + */
|
| +WebInspector.SourcesView.CloseAllActionDelegate = function()
|
| +{
|
| +}
|
| +
|
| +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);
|
| + if (!sourcesView)
|
| + return false;
|
| + sourcesView._editorContainer.closeAllFiles();
|
| + return true;
|
| + }
|
| +}
|
|
|