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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js

Issue 2080893002: Close all sources command (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
index 9f3fb088f76a98154fdfa0670d73a033e37dde11..04a25f09cfa67e9412c36678410a298d1ac2caab 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
@@ -238,6 +238,10 @@ WebInspector.TabbedPane.prototype = {
this.focus();
},
+ closeAllTabs: function(){
dgozman 2016/06/20 18:32:36 Let's not expose this and revert the change below.
einbinder 2016/06/20 19:28:24 Done.
+ this.closeTabs(this.allTabs());
+ },
+
/**
* @param {string} id
* @param {boolean=} userGesture
@@ -1127,7 +1131,7 @@ WebInspector.TabbedPaneTab.prototype = {
*/
function closeAll()
{
- this._closeTabs(this._tabbedPane.allTabs());
+ this._tabbedPane.closeAllTabs()
}
/**

Powered by Google App Engine
This is Rietveld 408576698