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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h

Issue 7880003: content: Move constrained window code from TabContents to TabContentsWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac regression now that shutdown timing was changed for views. Created 9 years, 3 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: chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h
diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h b/chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h
index 3862f55b655292536d153fb3b5a9d5516f14d890..3f5b29989dd16f29c0f0806e53c0717cf1030895 100644
--- a/chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h
+++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h
@@ -26,6 +26,18 @@ class TabContentsWrapperDelegate {
virtual void SwapTabContents(TabContentsWrapper* old_tc,
TabContentsWrapper* new_tc) = 0;
+ // Invoked prior to the TabContentsWrapper showing a constrained window.
+ virtual void WillShowConstrainedWindow(TabContentsWrapper* source);
+
+ // Returns true if constrained windows should be focused. Default is true.
+ virtual bool ShouldFocusConstrainedWindow();
+
+ // Changes the blocked state of |wrapper|. TabContents are considered blocked
+ // while displaying a tab modal dialog. During that time renderer host will
+ // ignore any UI interaction within TabContent outside of the currently
+ // displaying dialog.
+ virtual void SetTabContentBlocked(TabContentsWrapper* wrapper, bool blocked);
Avi (use Gerrit) 2011/09/28 00:16:50 Are these for the constrained window stuff? (Looks
+
protected:
virtual ~TabContentsWrapperDelegate();
};

Powered by Google App Engine
This is Rietveld 408576698