mac: Override system's default on resizing window no larger than screen.

This commit is contained in:
Cheng Zhao 2014-08-11 10:24:36 +08:00
parent d4fb1c1f8c
commit 4b90c02420

View file

@ -120,6 +120,11 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
shell_ = shell;
}
// Enable the window to be larger than screen.
- (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen*)screen {
return frameRect;
}
- (IBAction)reload:(id)sender {
shell_->GetWebContents()->GetController().ReloadIgnoringCache(false);
}