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