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

Unified Diff: content/public/browser/web_contents.h

Issue 17382005: Unbreak tabs.onRemove extension API in face of fast tab closure Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index dbac697f8ea3bfc2ceac1cbe260b63d0011d52c8..4cded967cf1ce193676afb6c2445743ed2c408ea 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -383,6 +383,9 @@ class WebContents : public PageNavigator,
// after all the beforeunload dialogs have finished.
virtual void OnUnloadStarted() = 0;
+ // Called just before making the tab invisible on close.
+ virtual void OnUnloadAboutToDetach() = 0;
+
// Set the time during close when the tab is no longer visible.
virtual void OnUnloadDetachedStarted() = 0;
Avi (use Gerrit) 2013/06/18 15:04:13 :( :(
@@ -402,6 +405,10 @@ class WebContents : public PageNavigator,
virtual void SetClosedByUserGesture(bool value) = 0;
virtual bool GetClosedByUserGesture() const = 0;
+ // True if view is in the process of being detached from it's containing tab
+ // as part of tab closure.
+ virtual bool GetWebContentsDetachedToClose() const = 0;
+
// Gets the zoom level for this tab.
virtual double GetZoomLevel() const = 0;
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698