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

Unified Diff: chrome/browser/ui/tabs/tab_strip_model.h

Issue 11016023: Quickly close tabs/window with long-running unload handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep original TabsNeedBeforeUnloadFired implementation. Created 8 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/tabs/tab_strip_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tabs/tab_strip_model.h
diff --git a/chrome/browser/ui/tabs/tab_strip_model.h b/chrome/browser/ui/tabs/tab_strip_model.h
index f988e7a611e6407682808cc5db1b35dcecd2bf87..8c16ee954a31d512c13fbda69b7d4bddf73feb3f 100644
--- a/chrome/browser/ui/tabs/tab_strip_model.h
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
@@ -227,6 +227,12 @@ class TabStripModel : public content::NotificationObserver {
// strip).
TabContents* DetachTabContentsAt(int index);
+ // Detached the TabContents like DetachTabContentsAt, however,
+ // CreateHistoricalTab is invoked on the delegate. The caller can use
+ // this to hide the tab while unload handlers run. The caller is responsible
+ // for destroying the tab.
+ TabContents* DetachTabContentsAndCreateHistoryAt(int index);
Avi (use Gerrit) 2012/11/15 18:56:43 I don't see the point in having this. It's a two l
slamm_google 2012/11/15 22:20:36 It felt wrong to me too. Thank you for the alterna
+
// Makes the tab at the specified index the active tab. |user_gesture| is true
// if the user actually clicked on the tab or navigated to it using a keyboard
// command, false if the tab was activated as a by-product of some other
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698