| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |