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

Unified Diff: chrome/browser/cocoa/browser_window_controller.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/browser_window_controller.h
diff --git a/chrome/browser/cocoa/browser_window_controller.h b/chrome/browser/cocoa/browser_window_controller.h
index 849ba04b5895b280c5267ff0cca4ae54365d1278..7156778631373b1119b2be0d8018879c4ef11fe6 100644
--- a/chrome/browser/cocoa/browser_window_controller.h
+++ b/chrome/browser/cocoa/browser_window_controller.h
@@ -160,7 +160,15 @@ class TabStripModelObserverBridge;
// for the per-tab sheets.
- (GTMWindowSheetController*)sheetController;
-- (void)attachConstrainedWindow:(ConstrainedWindowMac*)window;
+// Requests that |window| is opened as a per-tab sheet to the current tab.
+// Returns YES if the window became the active per-tab sheet of the current tab,
+// or NO if the current tab already has a per-tab sheet. If this returns NO,
+// the window's |Realize()| method will be called again when the curren sheet
+// disappears. The window should then call |attachConstrainedWindow:| again.
+- (BOOL)attachConstrainedWindow:(ConstrainedWindowMac*)window;
+
+// Closes the tab sheet |window| and potentially shows the next sheet in the
+// tab's sheet queue.
- (void)removeConstrainedWindow:(ConstrainedWindowMac*)window;
// Delegate method called when window is resized.
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698