| 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..6a160966ccc2d0fe5cc8054518253f1a4a5553e2 100644
|
| --- a/chrome/browser/ui/cocoa/full_size_content_window.mm
|
| +++ b/chrome/browser/ui/cocoa/full_size_content_window.mm
|
| @@ -12,22 +12,18 @@
|
|
|
| @end
|
|
|
| -// This view always takes the size of its superview. It is intended to be used
|
| -// as a NSWindow's contentView. It is needed because NSWindow's implementation
|
| -// explicitly resizes the contentView at inopportune times.
|
| -@interface FullSizeContentView : NSView
|
| -@end
|
| -
|
| @implementation FullSizeContentView
|
|
|
| -// This method is directly called by AppKit during a live window resize.
|
| -// Override it to prevent the content view from shrinking.
|
| - (void)setFrameSize:(NSSize)size {
|
| if ([self superview])
|
| size = [[self superview] bounds].size;
|
| [super setFrameSize:size];
|
| }
|
|
|
| +- (void)forceFrameSize:(NSSize)size {
|
| + [super setFrameSize:size];
|
| +}
|
| +
|
| @end
|
|
|
| @implementation FullSizeContentWindow
|
|
|