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

Side by Side 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: Remove alert hi 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« 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