From a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Fri, 21 Nov 2008 20:51:20 +0000 Subject: Rename Container->Widget R=erg review url = http://codereview.chromium.org/11348/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5849 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/constrained_window_impl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/views/constrained_window_impl.cc') diff --git a/chrome/browser/views/constrained_window_impl.cc b/chrome/browser/views/constrained_window_impl.cc index d504585..43e6b3a9 100644 --- a/chrome/browser/views/constrained_window_impl.cc +++ b/chrome/browser/views/constrained_window_impl.cc @@ -465,10 +465,10 @@ gfx::Size ConstrainedWindowNonClientView::GetPreferredSize() { void ConstrainedWindowNonClientView::ViewHierarchyChanged(bool is_add, View *parent, View *child) { - if (is_add && GetContainer()) { + if (is_add && GetWidget()) { // Add our Client View as we are added to the Container so that if we are // subsequently resized all the parent-child relationships are established. - if (is_add && GetContainer() && child == this) + if (is_add && GetWidget() && child == this) AddChildView(container_->client_view()); } } @@ -677,7 +677,7 @@ void ConstrainedWindowImpl::UpdateUI(unsigned int changed_flags) { } //////////////////////////////////////////////////////////////////////////////// -// ConstrainedWindowImpl, views::ContainerWin overrides: +// ConstrainedWindowImpl, views::WidgetWin overrides: void ConstrainedWindowImpl::OnDestroy() { // We do this here, rather than |Close|, since the window may be destroyed in @@ -709,7 +709,7 @@ void ConstrainedWindowImpl::OnFinalMessage(HWND window) { // list. owner_->WillClose(this); - ContainerWin::OnFinalMessage(window); + WidgetWin::OnFinalMessage(window); } void ConstrainedWindowImpl::OnGetMinMaxInfo(LPMINMAXINFO mm_info) { -- cgit v1.1