diff options
Diffstat (limited to 'chrome/browser/cocoa/constrained_window_mac.h')
-rw-r--r-- | chrome/browser/cocoa/constrained_window_mac.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/constrained_window_mac.h b/chrome/browser/cocoa/constrained_window_mac.h index 83331c7..0fd315d 100644 --- a/chrome/browser/cocoa/constrained_window_mac.h +++ b/chrome/browser/cocoa/constrained_window_mac.h @@ -117,6 +117,7 @@ class ConstrainedWindowMac : public ConstrainedWindow { virtual ~ConstrainedWindowMac(); // Overridden from ConstrainedWindow: + virtual void ShowConstrainedWindow(); virtual void CloseConstrainedWindow(); // Returns the TabContents that constrains this Constrained Window. @@ -125,12 +126,9 @@ class ConstrainedWindowMac : public ConstrainedWindow { // Returns the window's delegate. ConstrainedWindowMacDelegate* delegate() { return delegate_; } - // Tells |controller_| that the sheet would like to be displayed. + // Makes the constrained window visible, if it is not yet visible. void Realize(BrowserWindowController* controller); - // Called by |controller_| to inform the sheet that it now is visible. - void SetVisible(); - private: friend class ConstrainedWindow; @@ -146,6 +144,9 @@ class ConstrainedWindowMac : public ConstrainedWindow { // Controller of the window that contains this sheet. BrowserWindowController* controller_; + // Stores if |ShowConstrainedWindow()| was called. + bool should_be_visible_; + DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowMac); }; |