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

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

Issue 1725643002: Revert to Immersive Fullscreen on OSX for a multimonitors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | 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 e6616ac621bc604468998f4b4b2f16716dea9dd5..ee3cca09da91541688ea84b99310cb0c0318a6be 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -2016,9 +2016,15 @@ willAnimateFromState:(BookmarkBar::State)oldState
}
- (void)enterWebContentFullscreen {
+ BOOL hasMultipleMonitors = [[NSScreen screens] count] > 1;
Avi (use Gerrit) 2016/02/23 20:15:59 Does this trigger with mirrored displays? Do we wa
spqchan 2016/02/23 21:27:59 Good point on the mirrored displays. This should t
+
// HTML5 Fullscreen should only use AppKit fullscreen in 10.10+.
+ // However, if the user is using multiple monitors and turned off
+ // "Separate Space in Each Display", use Immersive Fullscreen so
+ // that the other monitors won't blank out.
if (chrome::mac::SupportsSystemFullscreen() &&
- base::mac::IsOSYosemiteOrLater())
+ base::mac::IsOSYosemiteOrLater() &&
+ !(hasMultipleMonitors && ![NSScreen screensHaveSeparateSpaces]))
Avi (use Gerrit) 2016/02/23 20:15:59 This if() needs {}s because the condition has mult
spqchan 2016/02/23 21:27:58 Done.
[self enterAppKitFullscreen];
else
[self enterImmersiveFullscreen];
« 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