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

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

Issue 2549863002: [Mac] Fixed permission bubble position in fullscreen (Closed)
Patch Set: Created 4 years 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.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index cffc7903dba949c70785bf87e4f1da21218f1e2f..159c1e322af43bdbc75d81f5bef4951004d91528 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1978,7 +1978,10 @@ willAnimateFromState:(BookmarkBar::State)oldState
}
- (BOOL)hasToolbar {
- return [self supportsWindowFeature:Browser::FEATURE_TOOLBAR];
+ FullscreenToolbarLayout layout =
+ [[self fullscreenToolbarController] computeLayout];
+ return layout.toolbarStyle != FullscreenToolbarStyle::TOOLBAR_NONE &&
+ [self supportsWindowFeature:Browser::FEATURE_TOOLBAR];
}
- (BOOL)hasLocationBar {
« 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