| 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 * @implements {Sources.TabbedEditorContainerDelegate} | 5 * @implements {Sources.TabbedEditorContainerDelegate} |
| 6 * @implements {UI.Searchable} | 6 * @implements {UI.Searchable} |
| 7 * @implements {UI.Replaceable} | 7 * @implements {UI.Replaceable} |
| 8 * @unrestricted | 8 * @unrestricted |
| 9 */ | 9 */ |
| 10 Sources.SourcesView = class extends UI.VBox { | 10 Sources.SourcesView = class extends UI.VBox { |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 /** | 680 /** |
| 681 * @interface | 681 * @interface |
| 682 */ | 682 */ |
| 683 Sources.SourcesView.EditorAction = function() {}; | 683 Sources.SourcesView.EditorAction = function() {}; |
| 684 | 684 |
| 685 Sources.SourcesView.EditorAction.prototype = { | 685 Sources.SourcesView.EditorAction.prototype = { |
| 686 /** | 686 /** |
| 687 * @param {!Sources.SourcesView} sourcesView | 687 * @param {!Sources.SourcesView} sourcesView |
| 688 * @return {!UI.ToolbarButton} | 688 * @return {!UI.ToolbarButton} |
| 689 */ | 689 */ |
| 690 button: function(sourcesView) {} | 690 button(sourcesView) {} |
| 691 }; | 691 }; |
| 692 | 692 |
| 693 /** | 693 /** |
| 694 * @implements {UI.ActionDelegate} | 694 * @implements {UI.ActionDelegate} |
| 695 * @unrestricted | 695 * @unrestricted |
| 696 */ | 696 */ |
| 697 Sources.SourcesView.SwitchFileActionDelegate = class { | 697 Sources.SourcesView.SwitchFileActionDelegate = class { |
| 698 /** | 698 /** |
| 699 * @param {!Workspace.UISourceCode} currentUISourceCode | 699 * @param {!Workspace.UISourceCode} currentUISourceCode |
| 700 * @return {?Workspace.UISourceCode} | 700 * @return {?Workspace.UISourceCode} |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 * @return {boolean} | 761 * @return {boolean} |
| 762 */ | 762 */ |
| 763 handleAction(context, actionId) { | 763 handleAction(context, actionId) { |
| 764 var sourcesView = UI.context.flavor(Sources.SourcesView); | 764 var sourcesView = UI.context.flavor(Sources.SourcesView); |
| 765 if (!sourcesView) | 765 if (!sourcesView) |
| 766 return false; | 766 return false; |
| 767 sourcesView._editorContainer.closeAllFiles(); | 767 sourcesView._editorContainer.closeAllFiles(); |
| 768 return true; | 768 return true; |
| 769 } | 769 } |
| 770 }; | 770 }; |
| OLD | NEW |