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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_private.mm

Issue 1371243003: Hide the Omnibox and Tabs before the views are moved into the immersive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed extra line Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
index 99ef304ce6729e554005c42a8fe0fa3db73f2f27..91d9e1be336f9b423fdad9d9e381968947a10300 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -515,6 +515,11 @@ willPositionSheet:(NSWindow*)sheet
// Set to NO by |-windowDidEnterFullScreen:|.
enteringImmersiveFullscreen_ = YES;
+ // Create the fullscreen window.
erikchen 2015/10/01 20:32:45 Why did this get moved before the fade to black?
spqchan 2015/10/05 16:20:57 I'm want to reduce the amount of work that gets do
+ fullscreenWindow_.reset([[self createFullscreenWindow] retain]);
+ savedRegularWindow_ = [[self window] retain];
+ savedRegularWindowFrame_ = [savedRegularWindow_ frame];
+
// Fade to black.
const CGDisplayReservationInterval kFadeDurationSeconds = 0.6;
Boolean didFadeOut = NO;
@@ -526,18 +531,13 @@ willPositionSheet:(NSWindow*)sheet
kCGDisplayBlendSolidColor, 0.0, 0.0, 0.0, /*synchronous=*/true);
}
- // Create the fullscreen window.
- fullscreenWindow_.reset([[self createFullscreenWindow] retain]);
- savedRegularWindow_ = [[self window] retain];
- savedRegularWindowFrame_ = [savedRegularWindow_ frame];
+ fullscreen_mac::SlidingStyle style = fullscreen_mac::OMNIBOX_TABS_NONE;
+ [self adjustUIForSlidingFullscreenStyle:style];
erikchen 2015/10/01 20:32:45 adjustUIForSlidingFullscreenStyle: calls layoutSub
spqchan 2015/10/05 16:20:58 I updated the description. The problem is that yo
[self moveViewsForImmersiveFullscreen:YES
regularWindow:[self window]
fullscreenWindow:fullscreenWindow_.get()];
- fullscreen_mac::SlidingStyle style = fullscreen_mac::OMNIBOX_TABS_NONE;
- [self adjustUIForSlidingFullscreenStyle:style];
-
// AppKit is helpful and prevents NSWindows from having the same height as
// the screen while the menu bar is showing. This only applies to windows on
// a secondary screen, in a separate space. Calling [NSWindow
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698