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

Issue 10573003: Simplify fullscreen exit bubble on mac; updating always creates one freshly. (Closed)

Created:
8 years, 6 months ago by scheib
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Robert Sesek
Visibility:
Public.

Description

Simplify fullscreen exit bubble on mac; updating always creates one freshly. This also moved the logic for when NOT to display the bubble to a single location, fixing 129456. BUG=129456 TEST=Manually, see bug. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143397

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -55 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +1 line, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 chunk +14 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm View 2 chunks +0 lines, -32 lines 4 comments Download

Messages

Total messages: 10 (0 generated)
scheib
8 years, 6 months ago (2012-06-18 22:44:47 UTC) #1
scheib
(not sure who best is for this, koz or jeremya)
8 years, 6 months ago (2012-06-18 22:46:02 UTC) #2
koz (OOO until 15th September)
I think jeremya would be more suitable for this code, I'm not familiar with this ...
8 years, 6 months ago (2012-06-19 01:00:50 UTC) #3
jeremya
lgtm mario, but I am not in the OWNERS file :)
8 years, 6 months ago (2012-06-20 15:45:23 UTC) #4
jeremya
[+thakis, who reviewed a bunch of this code when it was first written.]
8 years, 6 months ago (2012-06-20 15:48:45 UTC) #5
Nico
http://codereview.chromium.org/10573003/diff/1/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm File chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm (left): http://codereview.chromium.org/10573003/diff/1/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm#oldcode95 chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm:95: [self hideSoon]; Why is this no longer necessary? (This ...
8 years, 6 months ago (2012-06-20 15:52:10 UTC) #6
Robert Sesek
+rohitrao who owns Mac fullscreen
8 years, 6 months ago (2012-06-20 15:58:57 UTC) #7
scheib
http://codereview.chromium.org/10573003/diff/1/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm File chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm (left): http://codereview.chromium.org/10573003/diff/1/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm#oldcode95 chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm:95: [self hideSoon]; On 2012/06/20 15:52:11, Nico wrote: > Why ...
8 years, 6 months ago (2012-06-20 16:20:34 UTC) #8
Nico
http://codereview.chromium.org/10573003/diff/1/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm File chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm (left): http://codereview.chromium.org/10573003/diff/1/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm#oldcode95 chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm:95: [self hideSoon]; On 2012/06/20 16:20:34, scheib wrote: > On ...
8 years, 6 months ago (2012-06-20 16:23:36 UTC) #9
scheib
8 years, 6 months ago (2012-06-20 16:29:12 UTC) #10
http://codereview.chromium.org/10573003/diff/1/chrome/browser/ui/cocoa/fullsc...
File chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm (left):

http://codereview.chromium.org/10573003/diff/1/chrome/browser/ui/cocoa/fullsc...
chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm:95: [self
hideSoon];
On 2012/06/20 16:23:36, Nico wrote:
> On 2012/06/20 16:20:34, scheib wrote:
> > On 2012/06/20 15:52:11, Nico wrote:
> > > Why is this no longer necessary? (This is the bubble fade out animation,
> > right?)
> > 
> > OnAcceptFullscreenPermission destroys this object. The new bubble that
> displays
> > exit instructions and fades out has hideSoon called in showWindow on line
119.
> > 
> > The philosophy is to avoid having this controller duplicating state
> transitions
> > that are owned by the FullscreenController. Instead, this controller should
> show
> > any state FullscreenController dictates.
> 
> Right, but it could reuse the view. That way it's less likely to have a
flicker
> frame due to no bubble being visible for one frame.
> 
> But lgtm anyway.

The previous behavior:
- Bubble appears with buttons.
- Click a button.
- Bubble flickers aprox 2 frames as it resizes and lays out into a new bubble
without buttons and with different text.
- Bubble times out and slides off screen.

New behavior:
- Bubble appears with buttons.
- Click a button.
- Bubble instantly disappears and a new bubble rapidly slides down to the same
location without buttons and with different text.
- Bubble times out and slides off screen.

Powered by Google App Engine
This is Rietveld 408576698