Restores Fullscreen mode during session restore on Mac. Serializes
and deserializes fullscreen state during session restore. Also, fixes
issue where entering fullscreen mode is interupted it was leaving the
window tab strip layout in a weird state on Lion.
There are two issues I'll address in a follow on patch. (1) On
Lion "real" session restore suppresses the animation of entering
fullscreen. (2) On Lion, if multiple windows are in fullscreen
mode, they are assigned to different spaces. Currently we restore
only on window to fullscreen on Lion due to a system issue that
fails to sequence the subsequent fullscreen animations.
BUG=94611
TEST=BrowserWindowCocoaTest.TestFullscreen
[email protected]
Review URL: https://chromiumcodereview.appspot.com/9323070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121146 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index d8f9a9e6..5a327f4 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -117,6 +117,8 @@
if (initial_show_state_ == ui::SHOW_STATE_MINIMIZED) {
[window() orderOut:controller_];
[window() miniaturize:controller_];
+ } else if (initial_show_state_ == ui::SHOW_STATE_FULLSCREEN) {
+ browser_->ToggleFullscreenMode(false);
}
initial_show_state_ = ui::SHOW_STATE_DEFAULT;