This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac: Fix bug where exiting tab fullscreen would cause Chrome menubar …
…to disappear. Merge into branch 2171. Prior to my major fullscreen refactor, Presentation Mode and Canonical Fullscreen had significant implementation differences. As a result, fullscreen_controller treated the two modes very differently. If a user tried to enter tab fullscreen after entering browser fullscreen (Presentation Mode), enterImmersiveFullscreen: would not be invoked. If a user tried to do the same after Canonical Fullscreen, enterImmersiveFullscreen: would be invoked. After my major fullscreen refactor, Presentation Mode and Canonical Fullscreen are almost identical. However, I failed to update the logic in fullscreen_controller, which still treated the two modes differently. This CL updates the logic in fullscreen_controller to treat both modes like Presentation Mode. If a user tries to enter tab fullscreen after entering browser fullscreen, enterImmersiveFullscreen: is not invoked. Original Review URL: https://codereview.chromium.org/652983005 Original Cr-Commit-Position: refs/heads/master@{#299838} Conflicts: chrome/browser/ui/cocoa/browser_window_cocoa.h chrome/browser/ui/fullscreen/fullscreen_controller_state_unittest.cc chrome/test/base/test_browser_window.h TBR=rsesek@chromium.org BUG=422191 Review URL: https://codereview.chromium.org/669603005 Cr-Commit-Position: refs/branch-heads/2171@{#198} Cr-Branched-From: 267aeeb-refs/heads/master@{#297060}
- Loading branch information
Showing
6 changed files
with
36 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters