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 52a740f3f2fc6b356307144144905b1b47505881..f5bfe47a5a6bc17c0c42b7100a0eddbb61db546b 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
@@ -206,19 +206,6 @@ willPositionSheet:(NSWindow*)sheet |
(floatingBarShownFraction_) * |
[presentationModeController_ floatingBarVerticalOffset]); |
break; |
- case fullscreen_mac::OMNIBOX_PRESENT: { |
- // At rest: omnibox showing. yOffset should be tabstrip height |
- // When cursor is at top: everything shows. yOffset should be -menubar |
- // height. |
- CGFloat tabStripHeight = 0; |
- if ([self hasTabStrip]) |
- tabStripHeight = NSHeight([[self tabStripView] frame]); |
- yOffset = std::floor( |
- (1 - floatingBarShownFraction_) * tabStripHeight - |
- floatingBarShownFraction_ * |
- [presentationModeController_ floatingBarVerticalOffset]); |
- break; |
- } |
case fullscreen_mac::OMNIBOX_TABS_HIDDEN: |
// In presentation mode, |yOffset| accounts for the sliding position of |
// the floating bar and the extra offset needed to dodge the menu bar. |
@@ -269,9 +256,7 @@ willPositionSheet:(NSWindow*)sheet |
if ([self isInFullscreenWithOmniboxSliding]) { |
switch (fullscreenStyle_) { |
case fullscreen_mac::OMNIBOX_TABS_PRESENT: |
- case fullscreen_mac::OMNIBOX_PRESENT: |
- // Do nothing in Canonical Fullscreen and Simplified Fullscreen. All |
- // content slides. |
+ // Do nothing in Canonical Fullscreen. All content slides. |
break; |
case fullscreen_mac::OMNIBOX_TABS_HIDDEN: |
// If in presentation mode, reset |maxY| to top of screen, so that the |
@@ -765,14 +750,7 @@ willPositionSheet:(NSWindow*)sheet |
regularWindow:[self window] |
fullscreenWindow:fullscreenWindow_.get()]; |
- // When simplified fullscreen is enabled, do not enter presentation mode. |
- const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- fullscreen_mac::SlidingStyle style; |
- if (command_line->HasSwitch(switches::kEnableSimplifiedFullscreen)) { |
- style = fullscreen_mac::OMNIBOX_PRESENT; |
- } else { |
- style = fullscreen_mac::OMNIBOX_TABS_HIDDEN; |
- } |
+ fullscreen_mac::SlidingStyle style = fullscreen_mac::OMNIBOX_TABS_HIDDEN; |
[self adjustUIForSlidingFullscreenStyle:style]; |
// AppKit is helpful and prevents NSWindows from having the same height as |
@@ -814,13 +792,6 @@ willPositionSheet:(NSWindow*)sheet |
kCGDisplayBlendSolidColor, 0.0, 0.0, 0.0, /*synchronous=*/true); |
} |
- // When simplified fullscreen is enabled, the menubar status is managed |
- // directly by BWC. |
- const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kEnableSimplifiedFullscreen)) { |
- // TODO(rohitrao): Add code to manage the menubar here. |
- } |
- |
[self windowWillExitFullScreen:nil]; |
[self moveViewsForImmersiveFullscreen:NO |
@@ -917,14 +888,9 @@ willPositionSheet:(NSWindow*)sheet |
browser_->fullscreen_controller()->IsWindowFullscreenForTabOrPending(); |
enteringAppKitFullscreen_ = YES; |
- fullscreen_mac::SlidingStyle style; |
- const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kEnableSimplifiedFullscreen)) |
- style = fullscreen_mac::OMNIBOX_PRESENT; |
- else if (mode) |
- style = fullscreen_mac::OMNIBOX_TABS_HIDDEN; |
- else |
- style = fullscreen_mac::OMNIBOX_TABS_PRESENT; |
+ fullscreen_mac::SlidingStyle style = |
+ mode ? fullscreen_mac::OMNIBOX_TABS_HIDDEN |
+ : fullscreen_mac::OMNIBOX_TABS_PRESENT; |
[self adjustUIForSlidingFullscreenStyle:style]; |
} |