| 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 6bbb6d210f397861d7d4aa664cb132e646486e32..b3a12165fe142218f6348f879bac824a0bc7e857 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| @@ -460,8 +460,10 @@ willPositionSheet:(NSWindow*)sheet
|
| BOOL showDropdown =
|
| !fullscreenForTab && !kioskMode && ([self floatingBarHasFocus]);
|
|
|
| + NSView* contentView = [[self window] contentView];
|
| [fullscreenToolbarController_
|
| - setupFullscreenToolbarWithDropdown:showDropdown];
|
| + setupFullscreenToolbarForContentView:contentView
|
| + showDropdown:showDropdown];
|
| }
|
|
|
| - (void)adjustUIForExitingFullscreenAndStopOmniboxSliding {
|
| @@ -474,6 +476,10 @@ willPositionSheet:(NSWindow*)sheet
|
| }
|
|
|
| - (void)adjustUIForSlidingFullscreenStyle:(fullscreen_mac::SlidingStyle)style {
|
| + // The UI should only be adjusted in fullscreen mode.
|
| + if (![self isInAnyFullscreenMode])
|
| + return;
|
| +
|
| if (!fullscreenToolbarController_) {
|
| fullscreenToolbarController_.reset(
|
| [self newFullscreenToolbarControllerWithStyle:style]);
|
| @@ -1009,8 +1015,11 @@ willPositionSheet:(NSWindow*)sheet
|
|
|
| [self layoutTabContentArea:output.contentAreaFrame];
|
|
|
| - if (!NSIsEmptyRect(output.fullscreenBackingBarFrame))
|
| + if (!NSIsEmptyRect(output.fullscreenBackingBarFrame)) {
|
| [floatingBarBackingView_ setFrame:output.fullscreenBackingBarFrame];
|
| + [fullscreenToolbarController_
|
| + setTrackingAreaFromOverlayFrame:output.fullscreenBackingBarFrame];
|
| + }
|
|
|
| [findBarCocoaController_
|
| positionFindBarViewAtMaxY:output.findBarMaxY
|
|
|