| 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..8b55595f5c950bed47b2e8525c56ced201f628a3 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)frameRect
|
| + display:(BOOL)flag
|
| + animate:(BOOL)animateFlag {
|
| + if (frameAndStyleMaskLock_)
|
| + return;
|
| + [super setFrame:frameRect display:flag animate:animateFlag];
|
| +}
|
| +
|
| - (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_;
|
| }
|
|
|