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

Unified Diff: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 4 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
Index: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
index 18a7d380ab781b883936bde36970c38e74c502b9..bf609cfb2dcba2da316ebd94325394a3a7c82a69 100644
--- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
@@ -54,23 +54,13 @@
[[self window] makeKeyAndOrderFront:self];
}
-- (void)attachConstrainedWindow:(ConstrainedWindowMac*)window {
+- (GTMWindowSheetController*)sheetController {
if (!sheetController_.get()) {
sheetController_.reset([[GTMWindowSheetController alloc]
initWithWindow:[self window]
delegate:self]);
}
-
- NSView* tabContentsView =
- [window->owner()->web_contents()->GetNativeView() superview];
- window->delegate()->RunSheet(sheetController_, tabContentsView);
-}
-
-- (void)removeConstrainedWindow:(ConstrainedWindowMac*)window {
-}
-
-- (BOOL)canAttachConstrainedWindow {
- return YES;
+ return sheetController_;
}
- (void)executeCommand:(int)command {
« no previous file with comments | « chrome/browser/ui/cocoa/constrained_window_mac.mm ('k') | chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698