| Index: chrome/browser/ui/cocoa/full_size_content_window.mm
|
| diff --git a/chrome/browser/ui/cocoa/full_size_content_window.mm b/chrome/browser/ui/cocoa/full_size_content_window.mm
|
| index 1dea52a7000bd65d1d62417433394e089eb08e28..04c76986226669f6222f2ff82c5be074ee75fd01 100644
|
| --- a/chrome/browser/ui/cocoa/full_size_content_window.mm
|
| +++ b/chrome/browser/ui/cocoa/full_size_content_window.mm
|
| @@ -5,6 +5,7 @@
|
| #import "chrome/browser/ui/cocoa/full_size_content_window.h"
|
|
|
| #include "base/logging.h"
|
| +#include "base/mac/foundation_util.h"
|
|
|
| @interface FullSizeContentWindow ()
|
|
|
| @@ -16,6 +17,11 @@
|
| // as a NSWindow's contentView. It is needed because NSWindow's implementation
|
| // explicitly resizes the contentView at inopportune times.
|
| @interface FullSizeContentView : NSView
|
| +
|
| +// This method allows us to set the content view size since setFrameSize is
|
| +// overridden to prevent the view from shrinking.
|
| +- (void)forceFrameSize:(NSSize)size;
|
| +
|
| @end
|
|
|
| @implementation FullSizeContentView
|
| @@ -28,6 +34,10 @@
|
| [super setFrameSize:size];
|
| }
|
|
|
| +- (void)forceFrameSize:(NSSize)size {
|
| + [super setFrameSize:size];
|
| +}
|
| +
|
| @end
|
|
|
| @implementation FullSizeContentWindow
|
| @@ -81,6 +91,12 @@
|
| return self;
|
| }
|
|
|
| +- (void)forceContentViewSize:(NSSize)size {
|
| + FullSizeContentView* contentView =
|
| + base::mac::ObjCCast<FullSizeContentView>(chromeWindowView_);
|
| + [contentView forceFrameSize:size];
|
| +}
|
| +
|
| #pragma mark - Private Methods
|
|
|
| + (BOOL)shouldUseFullSizeContentViewForStyle:(NSUInteger)windowStyle {
|
|
|