Chromium Code Reviews| 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; |