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

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

Issue 2071973002: Mac: Disable visual effects when fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/tabs/tab_strip_controller.h » ('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_private.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
index 996e3d6b3ce3110895a4ad4dbf89adf27122978f..883c3b3097c0eefa53a81e42e9e917bfa3e23cb2 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -705,6 +705,8 @@ - (void)windowWillEnterFullScreen:(NSNotification*)notification {
}
- (void)windowDidEnterFullScreen:(NSNotification*)notification {
+ [tabStripController_ setVisualEffectsDisabledForFullscreen:YES];
+
// In Yosemite, some combination of the titlebar and toolbar always show in
// full-screen mode. We do not want either to show. Search for the window that
// contains the views, and hide it. There is no need to ever unhide the view.
@@ -772,6 +774,8 @@ - (void)windowDidEnterFullScreen:(NSNotification*)notification {
}
- (void)windowWillExitFullScreen:(NSNotification*)notification {
+ [tabStripController_ setVisualEffectsDisabledForFullscreen:NO];
+
if (fullscreenLowPowerCoordinator_)
fullscreenLowPowerCoordinator_->SetInFullscreenTransition(true);
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/tabs/tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698