Chromium Code Reviews| 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 3958dce10d4782421e74191fd37c0cb0f408b612..a80da50067467ad8511734e09907fc84c34508f3 100644 |
| --- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm |
| +++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm |
| @@ -9,6 +9,7 @@ |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/ui/cocoa/browser_window_utils.h" |
| #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" |
| +#include "chrome/browser/ui/tab_contents/tab_contents.h" |
|
jeremya
2012/08/05 22:32:47
I don't think you need this include.
|
| #include "chrome/common/extensions/extension.h" |
| #include "content/public/browser/render_widget_host_view.h" |
| #include "content/public/browser/web_contents.h" |
| @@ -48,6 +49,29 @@ |
| shellWindow_->WindowDidResignKey(); |
| } |
| +- (void)gtm_systemRequestsVisibilityForView:(NSView*)view { |
| + [[self window] makeKeyAndOrderFront:self]; |
| +} |
| + |
| +- (void)attachConstrainedWindow:(ConstrainedWindowMac*)window { |
| + 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 { |
|
jeremya
2012/08/05 22:32:47
Is this NOTREACHED()?
|
| +} |
| + |
| +- (BOOL)canAttachConstrainedWindow { |
| + return YES; |
| +} |
| + |
| @end |
| @interface ShellNSWindow : UnderlayOpenGLHostingWindow |