| 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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 removeObserver:self | 581 removeObserver:self |
| 582 name:NSViewFrameDidChangeNotification | 582 name:NSViewFrameDidChangeNotification |
| 583 object:[[self window] contentView]]; | 583 object:[[self window] contentView]]; |
| 584 } | 584 } |
| 585 | 585 |
| 586 - (NSSize)window:(NSWindow*)window | 586 - (NSSize)window:(NSWindow*)window |
| 587 willUseFullScreenContentSize:(NSSize)proposedSize { | 587 willUseFullScreenContentSize:(NSSize)proposedSize { |
| 588 return proposedSize; | 588 return proposedSize; |
| 589 } | 589 } |
| 590 | 590 |
| 591 - (NSApplicationPresentationOptions)window:(NSWindow*)window | |
| 592 willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)opt { | |
| 593 return (opt | | |
| 594 NSApplicationPresentationAutoHideDock | | |
| 595 NSApplicationPresentationAutoHideMenuBar); | |
| 596 } | |
| 597 | |
| 598 - (void)windowWillEnterFullScreen:(NSNotification*)notification { | 591 - (void)windowWillEnterFullScreen:(NSNotification*)notification { |
| 599 RecordFullscreenWindowLocation([self window]); | 592 RecordFullscreenWindowLocation([self window]); |
| 600 RecordFullscreenStyle(CANONICAL_FULLSCREEN); | 593 RecordFullscreenStyle(CANONICAL_FULLSCREEN); |
| 601 | 594 |
| 602 if (notification) // For System Fullscreen when non-nil. | 595 if (notification) // For System Fullscreen when non-nil. |
| 603 [self registerForContentViewResizeNotifications]; | 596 [self registerForContentViewResizeNotifications]; |
| 604 | 597 |
| 605 [[tabStripController_ activeTabContentsController] | 598 [[tabStripController_ activeTabContentsController] |
| 606 setBlockFullscreenResize:YES]; | 599 setBlockFullscreenResize:YES]; |
| 607 | 600 |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 if (fullscreenLowPowerCoordinator_) | 1177 if (fullscreenLowPowerCoordinator_) |
| 1185 fullscreenLowPowerCoordinator_->SetHasActiveSheet(false); | 1178 fullscreenLowPowerCoordinator_->SetHasActiveSheet(false); |
| 1186 } | 1179 } |
| 1187 | 1180 |
| 1188 - (void)childWindowsDidChange { | 1181 - (void)childWindowsDidChange { |
| 1189 if (fullscreenLowPowerCoordinator_) | 1182 if (fullscreenLowPowerCoordinator_) |
| 1190 fullscreenLowPowerCoordinator_->ChildWindowsChanged(); | 1183 fullscreenLowPowerCoordinator_->ChildWindowsChanged(); |
| 1191 } | 1184 } |
| 1192 | 1185 |
| 1193 @end // @implementation BrowserWindowController(Private) | 1186 @end // @implementation BrowserWindowController(Private) |
| OLD | NEW |