| 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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 } | 775 } |
| 776 } | 776 } |
| 777 | 777 |
| 778 - (void)windowDidExitFullScreen:(NSNotification*)notification { | 778 - (void)windowDidExitFullScreen:(NSNotification*)notification { |
| 779 DCHECK(exitingAppKitFullscreen_); | 779 DCHECK(exitingAppKitFullscreen_); |
| 780 | 780 |
| 781 if (notification) // For System Fullscreen when non-nil. | 781 if (notification) // For System Fullscreen when non-nil. |
| 782 [self deregisterForContentViewResizeNotifications]; | 782 [self deregisterForContentViewResizeNotifications]; |
| 783 | 783 |
| 784 browser_->WindowFullscreenStateChanged(); | 784 browser_->WindowFullscreenStateChanged(); |
| 785 [self.chromeContentView setAutoresizesSubviews:YES]; |
| 785 | 786 |
| 786 [self resetCustomAppKitFullscreenVariables]; | 787 [self resetCustomAppKitFullscreenVariables]; |
| 787 | 788 |
| 788 // Ensure that the window is layout properly. | 789 // Ensure that the window is layout properly. |
| 789 [self layoutSubviews]; | 790 [self layoutSubviews]; |
| 790 } | 791 } |
| 791 | 792 |
| 792 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window { | 793 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window { |
| 793 [self deregisterForContentViewResizeNotifications]; | 794 [self deregisterForContentViewResizeNotifications]; |
| 794 [self resetCustomAppKitFullscreenVariables]; | 795 [self resetCustomAppKitFullscreenVariables]; |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1230 return nil; | 1231 return nil; |
| 1231 } | 1232 } |
| 1232 | 1233 |
| 1233 - (BOOL)isFullscreenForTabContent { | 1234 - (BOOL)isFullscreenForTabContent { |
| 1234 return browser_->exclusive_access_manager() | 1235 return browser_->exclusive_access_manager() |
| 1235 ->fullscreen_controller() | 1236 ->fullscreen_controller() |
| 1236 ->IsWindowFullscreenForTabOrPending(); | 1237 ->IsWindowFullscreenForTabOrPending(); |
| 1237 } | 1238 } |
| 1238 | 1239 |
| 1239 @end // @implementation BrowserWindowController(Private) | 1240 @end // @implementation BrowserWindowController(Private) |
| OLD | NEW |