diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-27 19:51:12 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-27 19:51:12 +0000 |
commit | ac1f2faf8571fbeb2cf0e2cc52de5ccdd858cb01 (patch) | |
tree | e6f97dcde442f34858e6b4283fa2f3d457404ce0 /views/window/window.cc | |
parent | fca58f01b8ca6d8795ee617f211465e924ff33c7 (diff) | |
download | chromium_src-ac1f2faf8571fbeb2cf0e2cc52de5ccdd858cb01.zip chromium_src-ac1f2faf8571fbeb2cf0e2cc52de5ccdd858cb01.tar.gz chromium_src-ac1f2faf8571fbeb2cf0e2cc52de5ccdd858cb01.tar.bz2 |
Move SetWindowBounds onto Widget.
BUG=72040
TEST=none
Review URL: http://codereview.chromium.org/6976047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window/window.cc')
-rw-r--r-- | views/window/window.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/views/window/window.cc b/views/window/window.cc index 1886aa5..ca9519f 100644 --- a/views/window/window.cc +++ b/views/window/window.cc @@ -107,11 +107,6 @@ gfx::Rect Window::GetNormalBounds() const { return native_window_->GetRestoredBounds(); } -void Window::SetWindowBounds(const gfx::Rect& bounds, - gfx::NativeWindow other_window) { - native_window_->SetWindowBounds(bounds, other_window); -} - void Window::ShowInactive() { native_window_->ShowNativeWindow(NativeWindow::SHOW_INACTIVE); } @@ -352,7 +347,7 @@ void Window::SetInitialBounds(const gfx::Rect& bounds) { native_window_->CenterWindow(non_client_view_->GetPreferredSize()); } else { // Use the supplied initial bounds. - SetWindowBounds(bounds, NULL); + SetBoundsConstrained(bounds, NULL); } } } |