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

Side by Side Diff: chrome/browser/cocoa/constrained_window_mac.h

Issue 384113: Mac: Only show one per-tab sheet at a time per tab. (Closed)
Patch Set: comments Created 11 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_COCOA_CONSTRAINED_WINDOW_MAC_H_ 5 #ifndef CHROME_BROWSER_COCOA_CONSTRAINED_WINDOW_MAC_H_
6 #define CHROME_BROWSER_COCOA_CONSTRAINED_WINDOW_MAC_H_ 6 #define CHROME_BROWSER_COCOA_CONSTRAINED_WINDOW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "chrome/browser/tab_contents/constrained_window.h" 10 #include "chrome/browser/tab_contents/constrained_window.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Overridden from ConstrainedWindow: 119 // Overridden from ConstrainedWindow:
120 virtual void CloseConstrainedWindow(); 120 virtual void CloseConstrainedWindow();
121 121
122 // Returns the TabContents that constrains this Constrained Window. 122 // Returns the TabContents that constrains this Constrained Window.
123 TabContents* owner() const { return owner_; } 123 TabContents* owner() const { return owner_; }
124 124
125 // Returns the window's delegate. 125 // Returns the window's delegate.
126 ConstrainedWindowMacDelegate* delegate() { return delegate_; } 126 ConstrainedWindowMacDelegate* delegate() { return delegate_; }
127 127
128 // Makes the constrained window visible, if it is not yet visible. 128 // Tells |controller_| that the sheet would like to be displayed.
129 void Realize(BrowserWindowController* controller); 129 void Realize(BrowserWindowController* controller);
130 130
131 // Called by |controller_| to inform the sheet that it now is visible.
132 void SetVisible();
133
131 private: 134 private:
132 friend class ConstrainedWindow; 135 friend class ConstrainedWindow;
133 136
134 ConstrainedWindowMac(TabContents* owner, 137 ConstrainedWindowMac(TabContents* owner,
135 ConstrainedWindowMacDelegate* delegate); 138 ConstrainedWindowMacDelegate* delegate);
136 139
137 // The TabContents that owns and constrains this ConstrainedWindow. 140 // The TabContents that owns and constrains this ConstrainedWindow.
138 TabContents* owner_; 141 TabContents* owner_;
139 142
140 // Delegate that provides the contents of this constrained window. 143 // Delegate that provides the contents of this constrained window.
141 ConstrainedWindowMacDelegate* delegate_; 144 ConstrainedWindowMacDelegate* delegate_;
142 145
143 // Controller of the window that contains this sheet. 146 // Controller of the window that contains this sheet.
144 BrowserWindowController* controller_; 147 BrowserWindowController* controller_;
145 148
146 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowMac); 149 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowMac);
147 }; 150 };
148 151
149 #endif // CHROME_BROWSER_COCOA_CONSTRAINED_WINDOW_MAC_H_ 152 #endif // CHROME_BROWSER_COCOA_CONSTRAINED_WINDOW_MAC_H_
150 153
OLDNEW
« 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