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

Issue 652983005: mac: Fix bug where exiting tab fullscreen would cause Chrome menubar to disappear. (Closed)

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

Description

mac: Fix bug where exiting tab fullscreen would cause Chrome menubar to disappear. 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. BUG=422191 Committed: https://crrev.com/da9c656f686f5b4aaa56d56ecc82024aefd94719 Cr-Commit-Position: refs/heads/master@{#299838}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Fix unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -20 lines) Patch
M chrome/browser/ui/browser_window.h View 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/fullscreen/fullscreen_controller.cc View 2 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/ui/fullscreen/fullscreen_controller_state_unittest.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
erikchen
rsesek: Please review. I couldn't come up with any tests that weren't regressive. There are ...
6 years, 2 months ago (2014-10-14 22:31:12 UTC) #4
Robert Sesek
Does this pass the fullscreen_controller_unittest.cc ? https://codereview.chromium.org/652983005/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/652983005/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode493 chrome/browser/ui/cocoa/browser_window_controller_private.mm:493: [presentationModeController_ exitPresentationMode]; I ...
6 years, 2 months ago (2014-10-15 20:28:14 UTC) #5
erikchen
https://codereview.chromium.org/652983005/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/652983005/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode493 chrome/browser/ui/cocoa/browser_window_controller_private.mm:493: [presentationModeController_ exitPresentationMode]; On 2014/10/15 20:28:14, Robert Sesek wrote: > ...
6 years, 2 months ago (2014-10-15 21:50:35 UTC) #7
erikchen
On 2014/10/15 20:28:14, Robert Sesek wrote: > Does this pass the fullscreen_controller_unittest.cc ? Patch set ...
6 years, 2 months ago (2014-10-15 21:58:29 UTC) #8
Robert Sesek
LGTM
6 years, 2 months ago (2014-10-15 22:34:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652983005/80001
6 years, 2 months ago (2014-10-15 22:39:22 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/17895)
6 years, 2 months ago (2014-10-15 22:49:52 UTC) #13
erikchen
scheib: Looking for an OWNER review of chrome/browser/ui/fullscreen/*
6 years, 2 months ago (2014-10-15 22:59:49 UTC) #15
scheib
lgtm
6 years, 2 months ago (2014-10-15 23:12:29 UTC) #16
erikchen
sky: Looking for an OWNER review of chrome/browser/ui/browser_window.h.
6 years, 2 months ago (2014-10-15 23:16:41 UTC) #18
sky
LGTM
6 years, 2 months ago (2014-10-15 23:59:08 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652983005/80001
6 years, 2 months ago (2014-10-16 00:54:01 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:80001)
6 years, 2 months ago (2014-10-16 04:23:11 UTC) #22
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 04:23:54 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/da9c656f686f5b4aaa56d56ecc82024aefd94719
Cr-Commit-Position: refs/heads/master@{#299838}

Powered by Google App Engine
This is Rietveld 408576698