diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 20:51:58 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 20:51:58 +0000 |
commit | ede1b12edcf6744339f9286918ecb852bf3e4bb5 (patch) | |
tree | 7b4fe455d5b5f6262e6e3b57760a780461ad85b4 /chrome/browser/views/constrained_window_impl.cc | |
parent | 978d2431afaea5aeff8e6d3366a9d289bb3b8f59 (diff) | |
download | chromium_src-ede1b12edcf6744339f9286918ecb852bf3e4bb5.zip chromium_src-ede1b12edcf6744339f9286918ecb852bf3e4bb5.tar.gz chromium_src-ede1b12edcf6744339f9286918ecb852bf3e4bb5.tar.bz2 |
Rename Window->WindowWin
Pull basic Window interface out of WindowWin into new interface, Window.
Convert code to use it.
Review URL: http://codereview.chromium.org/42169
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11668 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/constrained_window_impl.cc')
-rw-r--r-- | chrome/browser/views/constrained_window_impl.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/views/constrained_window_impl.cc b/chrome/browser/views/constrained_window_impl.cc index 3d0869a..7b815f3 100644 --- a/chrome/browser/views/constrained_window_impl.cc +++ b/chrome/browser/views/constrained_window_impl.cc @@ -368,7 +368,7 @@ int ConstrainedWindowFrameView::NonClientHitTest(const gfx::Point& point) { if (!bounds().Contains(point)) return HTNOWHERE; - int frame_component = container_->client_view()->NonClientHitTest(point); + int frame_component = container_->GetClientView()->NonClientHitTest(point); if (frame_component != HTNOWHERE) return frame_component; @@ -378,7 +378,7 @@ int ConstrainedWindowFrameView::NonClientHitTest(const gfx::Point& point) { int window_component = GetHTComponentForFrame(point, FrameBorderThickness(), NonClientBorderThickness(), kResizeAreaCornerSize, kResizeAreaCornerSize, - container_->window_delegate()->CanResize()); + container_->GetDelegate()->CanResize()); // Fall back to the caption if no other component matches. return (window_component == HTNOWHERE) ? HTCAPTION : window_component; } @@ -653,8 +653,8 @@ void ConstrainedWindowImpl::DidBecomeSelected() { std::wstring ConstrainedWindowImpl::GetWindowTitle() const { std::wstring display_title; - if (window_delegate()) - display_title = window_delegate()->GetWindowTitle(); + if (GetDelegate()) + display_title = GetDelegate()->GetWindowTitle(); else display_title = L"Untitled"; @@ -671,9 +671,9 @@ const gfx::Rect& ConstrainedWindowImpl::GetCurrentBounds() const { ConstrainedWindowImpl::ConstrainedWindowImpl( TabContents* owner, views::WindowDelegate* window_delegate) - : Window(window_delegate), + : WindowWin(window_delegate), owner_(owner) { - non_client_view_->SetFrameView(CreateFrameViewForWindow()); + GetNonClientView()->SetFrameView(CreateFrameViewForWindow()); Init(); } @@ -685,7 +685,7 @@ void ConstrainedWindowImpl::Init() { } void ConstrainedWindowImpl::InitAsDialog(const gfx::Rect& initial_bounds) { - Window::Init(owner_->GetNativeView(), initial_bounds); + WindowWin::Init(owner_->GetNativeView(), initial_bounds); ActivateConstrainedWindow(); } @@ -719,7 +719,7 @@ void ConstrainedWindowImpl::OnDestroy() { } // Make sure we call super so that it can do its cleanup. - Window::OnDestroy(); + WindowWin::OnDestroy(); } void ConstrainedWindowImpl::OnFinalMessage(HWND window) { @@ -727,7 +727,7 @@ void ConstrainedWindowImpl::OnFinalMessage(HWND window) { // list. owner_->WillClose(this); - WidgetWin::OnFinalMessage(window); + WindowWin::OnFinalMessage(window); } LRESULT ConstrainedWindowImpl::OnMouseActivate(HWND window, |