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

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

Issue 652983005: mac: Fix bug where exiting tab fullscreen would cause Chrome menubar to disappear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 - (void)adjustUIForExitingFullscreenAndStopOmniboxSliding { 483 - (void)adjustUIForExitingFullscreenAndStopOmniboxSliding {
484 [presentationModeController_ exitPresentationMode]; 484 [presentationModeController_ exitPresentationMode];
485 presentationModeController_.reset(); 485 presentationModeController_.reset();
486 486
487 // Force the bookmark bar z-order to update. 487 // Force the bookmark bar z-order to update.
488 [[bookmarkBarController_ view] removeFromSuperview]; 488 [[bookmarkBarController_ view] removeFromSuperview];
489 [self layoutSubviews]; 489 [self layoutSubviews];
490 } 490 }
491 491
492 - (void)adjustUIForSlidingFullscreenStyle:(fullscreen_mac::SlidingStyle)style { 492 - (void)adjustUIForSlidingFullscreenStyle:(fullscreen_mac::SlidingStyle)style {
493 if (!presentationModeController_) { 493 [presentationModeController_ exitPresentationMode];
Robert Sesek 2014/10/15 20:28:14 I don't follow this...
erikchen 2014/10/15 21:50:35 presentationModeController_.get().slidingStyle = s
494 presentationModeController_.reset( 494 presentationModeController_.reset(
495 [self newPresentationModeControllerWithStyle:style]); 495 [self newPresentationModeControllerWithStyle:style]);
496 [self configurePresentationModeController]; 496 [self configurePresentationModeController];
497 } else {
498 presentationModeController_.get().slidingStyle = style;
499 }
500 497
501 if (!floatingBarBackingView_.get() && 498 if (!floatingBarBackingView_.get() &&
502 ([self hasTabStrip] || [self hasToolbar] || [self hasLocationBar])) { 499 ([self hasTabStrip] || [self hasToolbar] || [self hasLocationBar])) {
503 floatingBarBackingView_.reset( 500 floatingBarBackingView_.reset(
504 [[FloatingBarBackingView alloc] initWithFrame:NSZeroRect]); 501 [[FloatingBarBackingView alloc] initWithFrame:NSZeroRect]);
505 [floatingBarBackingView_ 502 [floatingBarBackingView_
506 setAutoresizingMask:(NSViewWidthSizable | NSViewMinYMargin)]; 503 setAutoresizingMask:(NSViewWidthSizable | NSViewMinYMargin)];
507 } 504 }
508 505
509 // Force the bookmark bar z-order to update. 506 // Force the bookmark bar z-order to update.
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 1040
1044 [CATransaction commit]; 1041 [CATransaction commit];
1045 hasAdjustedTabStripWhileEnteringAppKitFullscreen_ = YES; 1042 hasAdjustedTabStripWhileEnteringAppKitFullscreen_ = YES;
1046 } 1043 }
1047 } else { 1044 } else {
1048 hasAdjustedTabStripWhileEnteringAppKitFullscreen_ = NO; 1045 hasAdjustedTabStripWhileEnteringAppKitFullscreen_ = NO;
1049 } 1046 }
1050 } 1047 }
1051 1048
1052 @end // @implementation BrowserWindowController(Private) 1049 @end // @implementation BrowserWindowController(Private)
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/fullscreen/fullscreen_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698