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

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

Issue 2297993002: [Not for review] [Mac] Fullscreen Toolbar Edge Cases
Patch Set: Created 4 years, 4 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 | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index d1e4ab64bf3c2732f21018e2deec281cb2c2c9bb..355b6afd964562d49a9e13f6f506917a9830de57 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1984,7 +1984,7 @@ willAnimateFromState:(BookmarkBar::State)oldState
// If enabled, show the overlay if necessary (and if the fullscreen
// toolbar is hidden).
if (barVisibilityUpdatesEnabled_) {
- [fullscreenToolbarController_ ensureOverlayShownWithAnimation:animate];
+ [fullscreenToolbarController_ showToolbarIfPossibleWithAnimation:animate];
}
}
}
@@ -1993,11 +1993,10 @@ willAnimateFromState:(BookmarkBar::State)oldState
if ([self isBarVisibilityLockedForOwner:owner]) {
[barVisibilityLocks_ removeObject:owner];
- // If enabled, hide the overlay if necessary (and if the fullscreen
- // toolbar is hidden).
+ // If enabled, hide the overlay if necessary.
if (barVisibilityUpdatesEnabled_ &&
![barVisibilityLocks_ count]) {
- [fullscreenToolbarController_ ensureOverlayHiddenWithAnimation:animate];
+ [fullscreenToolbarController_ hideToolbarIfPossibleWithAnimation:animate];
}
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698