| Index: chrome/browser/ui/cocoa/framed_browser_window.mm
|
| diff --git a/chrome/browser/ui/cocoa/framed_browser_window.mm b/chrome/browser/ui/cocoa/framed_browser_window.mm
|
| index 5d098be8d3c00a47cd7a24ab4c2703c7ba498748..a83bc148bea819e70db4441d2d2903bccc92de7f 100644
|
| --- a/chrome/browser/ui/cocoa/framed_browser_window.mm
|
| +++ b/chrome/browser/ui/cocoa/framed_browser_window.mm
|
| @@ -45,6 +45,20 @@ const CGFloat kWindowGradientHeight = 24.0;
|
|
|
| @implementation FramedBrowserWindow
|
|
|
| +- (void)setStyleMask:(NSUInteger)styleMask {
|
| + if (frameAndStyleMaskLock_)
|
| + return;
|
| + [super setStyleMask:styleMask];
|
| +}
|
| +
|
| +- (void)setFrame:(NSRect)windowFrame
|
| + display:(BOOL)displayViews
|
| + animate:(BOOL)performAnimation {
|
| + if (frameAndStyleMaskLock_)
|
| + return;
|
| + [super setFrame:windowFrame display:displayViews animate:performAnimation];
|
| +}
|
| +
|
| - (id)initWithContentRect:(NSRect)contentRect
|
| hasTabStrip:(BOOL)hasTabStrip{
|
| NSUInteger styleMask = NSTitledWindowMask |
|
| @@ -97,6 +111,8 @@ const CGFloat kWindowGradientHeight = 24.0;
|
| selector:@selector(adjustZoomButton:)
|
| name:NSViewFrameDidChangeNotification
|
| object:zoomButton_];
|
| +
|
| + frameAndStyleMaskLock_ = NO;
|
| }
|
|
|
| return self;
|
| @@ -177,6 +193,10 @@ const CGFloat kWindowGradientHeight = 24.0;
|
| shouldHideTitle_ = flag;
|
| }
|
|
|
| +- (void)setFrameAndStyleMaskLock:(BOOL)lock {
|
| + frameAndStyleMaskLock_ = lock;
|
| +}
|
| +
|
| - (BOOL)_isTitleHidden {
|
| return shouldHideTitle_;
|
| }
|
|
|