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

Unified Diff: chrome/browser/tab_contents/constrained_window.h

Issue 459008: Mac: the return of the tab-modal-sheets patch. (Closed)
Patch Set: Merged ToT. Must ... commit ... soon. Created 11 years 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/shell_dialogs.h ('k') | chrome/browser/tab_contents/constrained_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/constrained_window.h
diff --git a/chrome/browser/tab_contents/constrained_window.h b/chrome/browser/tab_contents/constrained_window.h
index 057ee2745f56e3b1caa5984f21857166dcc0b58b..4f90cc89eb55839dd6523705bad55446458d17f1 100644
--- a/chrome/browser/tab_contents/constrained_window.h
+++ b/chrome/browser/tab_contents/constrained_window.h
@@ -41,6 +41,21 @@ class ConstrainedWindow {
// Closes the Constrained Window.
virtual void CloseConstrainedWindow() = 0;
+
+ // Events which constrained windows may recognize.
+ enum Event {
+ kEventNavigate,
+ };
+
+ // Inform the constrained the window that its parent tab will do something.
+ // Returns |true| if it did something in response, |false| if not. The default
+ // implementation, appropriate for "content-area" constrained windows, does
+ // the following:
+ // - |kEventNavigate|: calls |CloseConstrainedWindow()|;
+ // - anything/everything else: nothing.
+ // Platforms which implement non-"content-area" constrained windows (e.g.,
+ // tab-modal open/close dialogs) should override this.
+ virtual bool ParentWillDo(Event event);
};
#endif // CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_
« no previous file with comments | « chrome/browser/shell_dialogs.h ('k') | chrome/browser/tab_contents/constrained_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698