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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller_private.mm

Issue 1681463003: Preference for Presentation Mode/Fullscreen Toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/browser_window_controller_private.h" 5 #import "chrome/browser/ui/cocoa/browser_window_controller_private.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #import "base/auto_reset.h" 9 #import "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 } 785 }
786 } 786 }
787 787
788 - (void)windowDidExitFullScreen:(NSNotification*)notification { 788 - (void)windowDidExitFullScreen:(NSNotification*)notification {
789 DCHECK(exitingAppKitFullscreen_); 789 DCHECK(exitingAppKitFullscreen_);
790 790
791 if (notification) // For System Fullscreen when non-nil. 791 if (notification) // For System Fullscreen when non-nil.
792 [self deregisterForContentViewResizeNotifications]; 792 [self deregisterForContentViewResizeNotifications];
793 793
794 browser_->WindowFullscreenStateChanged(); 794 browser_->WindowFullscreenStateChanged();
795 [self.chromeContentView setAutoresizesSubviews:YES];
795 796
796 [self resetCustomAppKitFullscreenVariables]; 797 [self resetCustomAppKitFullscreenVariables];
797 } 798 }
798 799
799 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window { 800 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window {
800 [self deregisterForContentViewResizeNotifications]; 801 [self deregisterForContentViewResizeNotifications];
801 [self resetCustomAppKitFullscreenVariables]; 802 [self resetCustomAppKitFullscreenVariables];
802 [self adjustUIForExitingFullscreenAndStopOmniboxSliding]; 803 [self adjustUIForExitingFullscreenAndStopOmniboxSliding];
803 } 804 }
804 805
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 return nil; 1240 return nil;
1240 } 1241 }
1241 1242
1242 - (BOOL)isFullscreenForTabContent { 1243 - (BOOL)isFullscreenForTabContent {
1243 return browser_->exclusive_access_manager() 1244 return browser_->exclusive_access_manager()
1244 ->fullscreen_controller() 1245 ->fullscreen_controller()
1245 ->IsWindowFullscreenForTabOrPending(); 1246 ->IsWindowFullscreenForTabOrPending();
1246 } 1247 }
1247 1248
1248 @end // @implementation BrowserWindowController(Private) 1249 @end // @implementation BrowserWindowController(Private)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698