Add initial setContentBounds method
This commit is contained in:
parent
5681ee5220
commit
52199a008d
5 changed files with 21 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue