OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @implements {WebInspector.TabbedEditorContainerDelegate} | 7 * @implements {WebInspector.TabbedEditorContainerDelegate} |
8 * @implements {WebInspector.Searchable} | 8 * @implements {WebInspector.Searchable} |
9 * @implements {WebInspector.Replaceable} | 9 * @implements {WebInspector.Replaceable} |
10 * @extends {WebInspector.VBox} | 10 * @extends {WebInspector.VBox} |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 var currentUISourceCode = sourcesView.currentUISourceCode(); | 779 var currentUISourceCode = sourcesView.currentUISourceCode(); |
780 if (!currentUISourceCode) | 780 if (!currentUISourceCode) |
781 return false; | 781 return false; |
782 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate
._nextFile(currentUISourceCode); | 782 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate
._nextFile(currentUISourceCode); |
783 if (!nextUISourceCode) | 783 if (!nextUISourceCode) |
784 return false; | 784 return false; |
785 sourcesView.showSourceLocation(nextUISourceCode); | 785 sourcesView.showSourceLocation(nextUISourceCode); |
786 return true; | 786 return true; |
787 } | 787 } |
788 } | 788 } |
| 789 |
| 790 /** |
| 791 * @constructor |
| 792 * @implements {WebInspector.ActionDelegate} |
| 793 */ |
| 794 WebInspector.SourcesView.CloseAllActionDelegate = function() |
| 795 { |
| 796 } |
| 797 |
| 798 WebInspector.SourcesView.CloseAllActionDelegate.prototype = { |
| 799 /** |
| 800 * @override |
| 801 * @param {!WebInspector.Context} context |
| 802 * @param {string} actionId |
| 803 * @return {boolean} |
| 804 */ |
| 805 handleAction: function(context, actionId) |
| 806 { |
| 807 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView); |
| 808 if (!sourcesView) |
| 809 return false; |
| 810 sourcesView._editorContainer.closeAllFiles(); |
| 811 return true; |
| 812 } |
| 813 } |
OLD | NEW |