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

Unified Diff: chrome/browser/cocoa/constrained_window_mac.h

Issue 541056: Tab-modal dialog improvements:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | « chrome/browser/cocoa/browser_window_controller.mm ('k') | chrome/browser/cocoa/constrained_window_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/constrained_window_mac.h
===================================================================
--- chrome/browser/cocoa/constrained_window_mac.h (revision 36364)
+++ chrome/browser/cocoa/constrained_window_mac.h (working copy)
@@ -117,6 +117,7 @@
virtual ~ConstrainedWindowMac();
// Overridden from ConstrainedWindow:
+ virtual void ShowConstrainedWindow();
virtual void CloseConstrainedWindow();
// Returns the TabContents that constrains this Constrained Window.
@@ -125,12 +126,9 @@
// 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 @@
// Controller of the window that contains this sheet.
BrowserWindowController* controller_;
+ // Stores if |ShowConstrainedWindow()| was called.
+ bool should_be_visible_;
+
DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowMac);
};
Property changes on: chrome\browser\cocoa\constrained_window_mac.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.mm ('k') | chrome/browser/cocoa/constrained_window_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698