Chromium Code Reviews| Index: chrome/browser/cocoa/chrome_browser_window.mm |
| =================================================================== |
| --- chrome/browser/cocoa/chrome_browser_window.mm (revision 31837) |
| +++ chrome/browser/cocoa/chrome_browser_window.mm (working copy) |
| @@ -329,4 +329,15 @@ |
| return shouldHideTitle_; |
| } |
| +- (NSRect)constrainFrameRect:(NSRect)frame toScreen:(NSScreen*)screen { |
|
pink (ping after 24hrs)
2009/11/13 22:09:57
add a comment on when and why this gets called.
|
| + // Do not constrain the frame rect if our delegate says no. In this case, |
| + // return the original (unconstrained) frame. |
| + id delegate = [self delegate]; |
| + if ([delegate respondsToSelector:@selector(shouldConstrainFrameRect)] && |
| + ![delegate shouldConstrainFrameRect]) |
| + return frame; |
| + |
| + return [super constrainFrameRect:frame toScreen:screen]; |
| +} |
| + |
| @end |