Animate window resizing on OS X

This commit is contained in:
evgenyzinoviev 2016-01-15 05:54:12 +01:00
parent d4b8c65017
commit 2598b00b41
10 changed files with 68 additions and 36 deletions

View file

@ -375,7 +375,7 @@ bool NativeWindowViews::IsFullscreen() const {
return window_->IsFullscreen();
}
void NativeWindowViews::SetBounds(const gfx::Rect& bounds) {
void NativeWindowViews::SetBounds(const gfx::Rect& bounds, bool animate) {
#if defined(USE_X11)
// On Linux the minimum and maximum size should be updated with window size
// when window is not resizable.
@ -586,7 +586,7 @@ void NativeWindowViews::SetMenu(ui::MenuModel* menu_model) {
SetContentSizeConstraints(constraints);
// Resize the window to make sure content size is not changed.
SetContentSize(content_size);
SetContentSize(content_size, false);
}
}
}