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

Issue 655393002: mac: Fix a bug where a fullscreened window on Mavericks would be too short. (Closed)

Created:
6 years, 2 months ago by erikchen
Modified:
6 years, 2 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/3b432982d316ebdb553ff137a166521cbccc8b77 Cr-Commit-Position: refs/heads/master@{#300166}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Comments from rsesek. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -0 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
erikchen
rsesek: Please review.
6 years, 2 months ago (2014-10-16 00:44:44 UTC) #2
Robert Sesek
https://codereview.chromium.org/655393002/diff/40001/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): https://codereview.chromium.org/655393002/diff/40001/chrome/browser/ui/cocoa/browser_window_controller.h#newcode187 chrome/browser/ui/cocoa/browser_window_controller.h:187: BOOL enteringAppKitFullscreenOnPrimaryScreen_; Move this to be after enteringPresentationMode_ instead. ...
6 years, 2 months ago (2014-10-17 19:13:16 UTC) #3
erikchen
rsesek: PTAL https://codereview.chromium.org/655393002/diff/40001/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): https://codereview.chromium.org/655393002/diff/40001/chrome/browser/ui/cocoa/browser_window_controller.h#newcode187 chrome/browser/ui/cocoa/browser_window_controller.h:187: BOOL enteringAppKitFullscreenOnPrimaryScreen_; On 2014/10/17 19:13:16, Robert Sesek ...
6 years, 2 months ago (2014-10-17 21:02:33 UTC) #4
Robert Sesek
LGTM
6 years, 2 months ago (2014-10-17 21:05:19 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/655393002/60001
6 years, 2 months ago (2014-10-17 21:07:54 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 2 months ago (2014-10-17 21:39:12 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 21:39:47 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3b432982d316ebdb553ff137a166521cbccc8b77
Cr-Commit-Position: refs/heads/master@{#300166}

Powered by Google App Engine
This is Rietveld 408576698