Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / cocoa / presentation_mode_controller.mm
index d92fb7b..a80ceb1 100644 (file)
@@ -180,8 +180,8 @@ OSStatus MenuBarRevealHandler(EventHandlerCallRef handler,
 - (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
@@ -745,7 +745,7 @@ OSStatus MenuBarRevealHandler(EventHandlerCallRef handler,
 }
 
 - (BOOL)shouldShowMenubarInImmersiveFullscreen {
-  return toolbarFraction_ >= 1.0;
+  return [self doesScreenHaveMenuBar] && toolbarFraction_ > 0.99;
 }
 
 @end