Add initial setContentBounds method

This commit is contained in:
Kevin Sawicki 2016-08-04 12:02:24 -07:00
parent 5681ee5220
commit 52199a008d
5 changed files with 21 additions and 3 deletions

View file

@ -228,6 +228,10 @@ gfx::Size NativeWindow::GetContentSize() {
return GetContentBounds().size();
}
void NativeWindow::SetContentBounds(const gfx::Rect& bounds, bool animate) {
SetBounds(ContentBoundsToWindowBounds(bounds), animate);
}
gfx::Rect NativeWindow::GetContentBounds() {
return WindowBoundsToContentBounds(GetBounds());
}