mac: Fix a bug where a fullscreened window on Mavericks is too short.
commit3b432982d316ebdb553ff137a166521cbccc8b77
authorerikchen <erikchen@chromium.org>
Fri, 17 Oct 2014 21:38:59 +0000 (17 14:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 17 Oct 2014 21:39:16 +0000 (17 21:39 +0000)
tree63387ab89a4ccc4e8df338aa8379c31eebf67a30
parent0204a6fc0652d1e1e02387a5c7770711624e1b2e
mac: Fix a bug where a fullscreened window on Mavericks is too short.

There is a bug in Mavericks for applications linked against OSX 10.8 and
earlier. It requires Screens Have Separate Spaces to be enabled, and for the
window to be on a secondary screen. When AppKit Fullscreen is invoked on the
window, its final frame is 22pt too short.

This CL detects when these specific conditions occur so that the window's size
can be fixed.

Note: This is a bug buried in AppKit. Playing with methods like
-[NSWindowDelegate window:willUseFullScreenContentSize:] will not fix the
problem.

BUG=396980

Review URL: https://codereview.chromium.org/655393002

Cr-Commit-Position: refs/heads/master@{#300166}
chrome/browser/ui/cocoa/browser_window_controller.h
chrome/browser/ui/cocoa/browser_window_controller_private.h
chrome/browser/ui/cocoa/browser_window_controller_private.mm