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

Issue 1371243003: Hide the Omnibox and Tabs before the views are moved into the immersive (Closed)

Created:
5 years, 2 months ago by spqchan
Modified:
5 years, 2 months ago
Reviewers:
erikchen
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

In Immersive Fullscreen, there is a glimpse of the omnibox and tabs at the end of the blackout animation. To fix this issue, the omnibox and tabs are removed at the beginning of the animation so that they won't appear at the end of it. BUG=531999, 527395

Patch Set 1 #

Patch Set 2 : Blackout before toolbar disappears #

Patch Set 3 : Removed extra line #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 2 chunks +7 lines, -7 lines 4 comments Download

Messages

Total messages: 6 (2 generated)
spqchan
PTAL
5 years, 2 months ago (2015-09-28 22:52:36 UTC) #2
Avi (use Gerrit)
OK? It's been years since I've worked in this area. Tossing to Erik.
5 years, 2 months ago (2015-09-28 22:59:11 UTC) #4
erikchen
https://codereview.chromium.org/1371243003/diff/30002/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/1371243003/diff/30002/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode518 chrome/browser/ui/cocoa/browser_window_controller_private.mm:518: // Create the fullscreen window. Why did this get ...
5 years, 2 months ago (2015-10-01 20:32:45 UTC) #5
spqchan
5 years, 2 months ago (2015-10-05 16:20:58 UTC) #6
PTAL

https://codereview.chromium.org/1371243003/diff/30002/chrome/browser/ui/cocoa...
File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right):

https://codereview.chromium.org/1371243003/diff/30002/chrome/browser/ui/cocoa...
chrome/browser/ui/cocoa/browser_window_controller_private.mm:518: // Create the
fullscreen window.
On 2015/10/01 20:32:45, erikchen wrote:
> Why did this get moved before the fade to black?

I'm want to reduce the amount of work that gets done when the screen black outs.
This snippet doesn't cause any visible changes. Although, I don't think moving 
it here actually make a difference, because there's very little work involved.

https://codereview.chromium.org/1371243003/diff/30002/chrome/browser/ui/cocoa...
chrome/browser/ui/cocoa/browser_window_controller_private.mm:535: [self
adjustUIForSlidingFullscreenStyle:style];
On 2015/10/01 20:32:45, erikchen wrote:
> adjustUIForSlidingFullscreenStyle: calls layoutSubviews. That method is called
> again later in this method. -layoutSubviews should instantaneously readjust
the
> views to be in the correct positions, so how does moving this before
> "moveViewsForImmersiveFullscreen:" fix the problem?
> 
> Can you include more description in the bug about the actual nature of the
> problem?

I updated the description.

The problem is that you could see a glimpse of the tabs after the animation is
finished. Moving this solves the problem because we are hiding the tabs at the
beginning of the animation.

Powered by Google App Engine
This is Rietveld 408576698