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

Issue 390503003: Enables permission bubbles to remain visible during fulscreen on Mac. (Closed)

Created:
6 years, 5 months ago by leng
Modified:
6 years, 5 months ago
CC:
chromium-reviews, tfarina, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Enables permission bubbles to remain visible during fullscreen on Mac. Adds IsVisible() function to PermissionBubbleView so that the browser window knows if it is currently being shown. It's added to the base class, rather than just the cocoa implementation, because similar functionality will likely be used for views in the future. Adds alwaysShowDropdown property to the PresentationModeController. When set to YES, it disables hiding of the dropdown - toolbar and tab strip. Also adds a hack to ensure the UI is drawn correctly when entering fullscreen mode. Specifically, for the duration of the animation, the top-level view for the browser window has setWantsLayer set to YES. Without this, tabStripView is not rendered into the destination frame for the animation. (It is a sibling of the content view, not a subview, and I believe that the non-layer-based render path bypasses it when the animation begins.) I could not come up with any other mechanism to fix this, and without it, fullscreen looks quite bad - the toolbar displays properly, but the tab strip is missing. BUG=384260 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284438

Patch Set 1 #

Patch Set 2 : edits #

Patch Set 3 : fix tests #

Total comments: 8

Patch Set 4 : removed alwaysShowDropdown #

Total comments: 3

Patch Set 5 : edited comment #

Messages

Total messages: 19 (0 generated)
leng
@gbillock - permission bubble changes @rsesek - you've been reviewing other fullscreen CLs, so will ...
6 years, 5 months ago (2014-07-11 20:50:54 UTC) #1
Robert Sesek
https://codereview.chromium.org/390503003/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/390503003/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode639 chrome/browser/ui/cocoa/browser_window_controller_private.mm:639: - (void)permissionBubbleWindowWillClose:(NSNotification*)notification { This needs to be declared in ...
6 years, 5 months ago (2014-07-14 14:13:32 UTC) #2
leng
https://codereview.chromium.org/390503003/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/390503003/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode639 chrome/browser/ui/cocoa/browser_window_controller_private.mm:639: - (void)permissionBubbleWindowWillClose:(NSNotification*)notification { On 2014/07/14 14:13:32, rsesek wrote: > ...
6 years, 5 months ago (2014-07-14 18:17:24 UTC) #3
Robert Sesek
LGTM https://codereview.chromium.org/390503003/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h File chrome/browser/ui/cocoa/presentation_mode_controller.h (right): https://codereview.chromium.org/390503003/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h#newcode45 chrome/browser/ui/cocoa/presentation_mode_controller.h:45: BOOL alwaysShowDropdown_; On 2014/07/14 18:17:24, leng wrote: > ...
6 years, 5 months ago (2014-07-14 20:22:31 UTC) #4
leng
https://codereview.chromium.org/390503003/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h File chrome/browser/ui/cocoa/presentation_mode_controller.h (right): https://codereview.chromium.org/390503003/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h#newcode45 chrome/browser/ui/cocoa/presentation_mode_controller.h:45: BOOL alwaysShowDropdown_; On 2014/07/14 20:22:31, rsesek wrote: > On ...
6 years, 5 months ago (2014-07-14 21:28:32 UTC) #5
Robert Sesek
LGTM https://codereview.chromium.org/390503003/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_private.h File chrome/browser/ui/cocoa/browser_window_controller_private.h (right): https://codereview.chromium.org/390503003/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_private.h#newcode108 chrome/browser/ui/cocoa/browser_window_controller_private.h:108: // allow the floating bar to be hidden ...
6 years, 5 months ago (2014-07-15 16:38:16 UTC) #6
leng
@greg - ping?
6 years, 5 months ago (2014-07-15 20:52:45 UTC) #7
Greg Billock
On 2014/07/15 20:52:45, leng wrote: > @greg - ping? LGTM
6 years, 5 months ago (2014-07-17 18:39:13 UTC) #8
leng
The CQ bit was checked by leng@chromium.org
6 years, 5 months ago (2014-07-17 18:40:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leng@chromium.org/390503003/80001
6 years, 5 months ago (2014-07-17 18:43:10 UTC) #10
leng
+rdsmith - OWNERS for chrome/browser/download
6 years, 5 months ago (2014-07-17 18:53:00 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 22:18:31 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-17 22:25:50 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/80721)
6 years, 5 months ago (2014-07-17 22:25:51 UTC) #14
leng
+asanka for OWNERS - chrome/browser/download -rdsmith - OOO
6 years, 5 months ago (2014-07-18 00:23:53 UTC) #15
Randy Smith (Not in Mondays)
lgtm
6 years, 5 months ago (2014-07-21 15:40:31 UTC) #16
leng
The CQ bit was checked by leng@chromium.org
6 years, 5 months ago (2014-07-21 15:57:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leng@chromium.org/390503003/80001
6 years, 5 months ago (2014-07-21 15:58:55 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-21 16:03:30 UTC) #19
Message was sent while issue was closed.
Change committed as 284438

Powered by Google App Engine
This is Rietveld 408576698