diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 23:23:06 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 23:23:06 +0000 |
commit | 2c64b84bb39f9e1eb6de3ca3ab6308110b9b24c5 (patch) | |
tree | 33a6a3006a52b1f4b7acd6b44de684e364ce50c6 /chrome | |
parent | b087aa95b3a0feb86586fd267137b01e4f503ad4 (diff) | |
download | chromium_src-2c64b84bb39f9e1eb6de3ca3ab6308110b9b24c5.zip chromium_src-2c64b84bb39f9e1eb6de3ca3ab6308110b9b24c5.tar.gz chromium_src-2c64b84bb39f9e1eb6de3ca3ab6308110b9b24c5.tar.bz2 |
[Mac] Allow popups to go fullscreen.
BUG=108570
TEST=See reduced test case in bug.
Review URL: http://codereview.chromium.org/9252019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/ui/cocoa/browser_window_controller.mm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm index 8335b28..1536492 100644 --- a/chrome/browser/ui/cocoa/browser_window_controller.mm +++ b/chrome/browser/ui/cocoa/browser_window_controller.mm @@ -247,13 +247,15 @@ enum { [window setAnimationBehavior:NSWindowAnimationBehaviorDocumentWindow]; // Set the window to participate in Lion Fullscreen mode. Setting this flag - // has no effect on Snow Leopard or earlier. Popups and the devtools panel - // can share a fullscreen space with a tabbed window, but they can not be - // primary fullscreen windows. + // has no effect on Snow Leopard or earlier. Panels can share a fullscreen + // space with a tabbed window, but they can not be primary fullscreen + // windows. NSUInteger collectionBehavior = [window collectionBehavior]; - collectionBehavior |= browser_->type() == Browser::TYPE_TABBED ? - NSWindowCollectionBehaviorFullScreenPrimary : - NSWindowCollectionBehaviorFullScreenAuxiliary; + collectionBehavior |= + browser_->type() == Browser::TYPE_TABBED || + browser_->type() == Browser::TYPE_POPUP ? + NSWindowCollectionBehaviorFullScreenPrimary : + NSWindowCollectionBehaviorFullScreenAuxiliary; [window setCollectionBehavior:collectionBehavior]; // Get the most appropriate size for the window, then enforce the |