- (void)showActiveWindowUI;
- (void)hideActiveWindowUI;
-// In Immersive Fullscreen, the menubar is visible iff. toolbarFraction_ >=
-// 1.0.
+// Whether the menu bar should be shown in immersive fullscreen for the screen
+// that contains the window.
- (BOOL)shouldShowMenubarInImmersiveFullscreen;
@end
}
- (BOOL)shouldShowMenubarInImmersiveFullscreen {
- return toolbarFraction_ >= 1.0;
+ return [self doesScreenHaveMenuBar] && toolbarFraction_ > 0.99;
}
@end