Get BrowserWindow::getContentSize API.

This commit is contained in:
Cheng Zhao 2014-05-15 15:30:04 +08:00
parent 8d5fbe525d
commit 76cc3eeb6d
9 changed files with 29 additions and 0 deletions

View file

@ -305,6 +305,11 @@ gfx::Size NativeWindowMac::GetSize() {
return gfx::Size(frame.size.width, frame.size.height);
}
gfx::Size NativeWindowMac::GetContentSize() {
NSRect bounds = [[window_ contentView] bounds];
return gfx::Size(bounds.size.width, bounds.size.height);
}
void NativeWindowMac::SetMinimumSize(const gfx::Size& size) {
NSSize min_size = NSMakeSize(size.width(), size.height());
NSView* content = [window_ contentView];