Chromium Code Reviews| 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 c9c6224ab6b621c1d9d08f38a3fecbddadda4a81..de707420df7a852bba4bc5da3fe14c6a3a31d2db 100644 |
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| @@ -366,9 +366,6 @@ willPositionSheet:(NSWindow*)sheet |
| base::scoped_nsobject<FocusTracker> focusTracker( |
| [[FocusTracker alloc] initWithWindow:sourceWindow]); |
| - // While we move views (and focus) around, disable any bar visibility changes. |
| - [self disableBarVisibilityUpdates]; |
| - |
|
spqchan
2016/10/28 17:00:05
FYI, I removed these because we no longer show the
|
| // Retain the tab strip view while we remove it from its superview. |
| base::scoped_nsobject<NSView> tabStripView; |
| if ([self hasTabStrip]) { |
| @@ -442,9 +439,6 @@ willPositionSheet:(NSWindow*)sheet |
| [self focusTabContents]; |
| } |
| [sourceWindow orderOut:self]; |
| - |
| - // We're done moving focus, so re-enable bar visibility changes. |
| - [self enableBarVisibilityUpdates]; |
| } |
| - (void)updatePermissionBubbleAnchor { |
| @@ -601,8 +595,6 @@ willPositionSheet:(NSWindow*)sheet |
| if (enteringAppKitFullscreen_) |
| return; |
| - [self hideOverlayIfPossibleWithAnimation:NO]; |
| - |
| switch (exclusiveAccessController_->bubble_type()) { |
| case EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE: |
| case EXCLUSIVE_ACCESS_BUBBLE_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION: |
| @@ -835,35 +827,6 @@ willPositionSheet:(NSWindow*)sheet |
| [self adjustUIForSlidingFullscreenStyle:style]; |
| } |
| -- (void)enableBarVisibilityUpdates { |
| - // Early escape if there's nothing to do. |
| - if (barVisibilityUpdatesEnabled_) |
| - return; |
| - |
| - barVisibilityUpdatesEnabled_ = YES; |
| - |
| - if ([barVisibilityLocks_ count]) |
| - [fullscreenToolbarController_ ensureOverlayShownWithAnimation:NO]; |
| - else |
| - [fullscreenToolbarController_ ensureOverlayHiddenWithAnimation:NO]; |
| -} |
| - |
| -- (void)disableBarVisibilityUpdates { |
| - // Early escape if there's nothing to do. |
| - if (!barVisibilityUpdatesEnabled_) |
| - return; |
| - |
| - barVisibilityUpdatesEnabled_ = NO; |
| - [fullscreenToolbarController_ cancelAnimationAndTimer]; |
| -} |
| - |
| -- (void)hideOverlayIfPossibleWithAnimation:(BOOL)animation { |
| - if (!barVisibilityUpdatesEnabled_ || [barVisibilityLocks_ count]) |
| - return; |
| - |
| - [fullscreenToolbarController_ ensureOverlayHiddenWithAnimation:animation]; |
| -} |
| - |
| - (CGFloat)toolbarDividerOpacity { |
| return [bookmarkBarController_ toolbarDividerOpacity]; |
| } |