From ed8b1b805203b6ccdb5517d0c30cc689dde65e98 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 12 Mar 2009 19:29:06 +0000 Subject: Make Widget return a gfx::NativeView instead of a HWND. Review URL: http://codereview.chromium.org/43124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11562 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/tabs/dragged_tab_view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/views/tabs/dragged_tab_view.cc') diff --git a/chrome/browser/views/tabs/dragged_tab_view.cc b/chrome/browser/views/tabs/dragged_tab_view.cc index aae0052..eb3f15a 100644 --- a/chrome/browser/views/tabs/dragged_tab_view.cc +++ b/chrome/browser/views/tabs/dragged_tab_view.cc @@ -107,7 +107,7 @@ void DraggedTabView::AnimateToBounds(const gfx::Rect& bounds, animation_callback_.reset(callback); RECT wr; - GetWindowRect(GetWidget()->GetHWND(), &wr); + GetWindowRect(GetWidget()->GetNativeView(), &wr); animation_start_bounds_ = wr; animation_end_bounds_ = bounds; @@ -229,7 +229,7 @@ void DraggedTabView::PaintDetachedView(ChromeCanvas* canvas) { void DraggedTabView::ResizeContainer() { gfx::Size ps = GetPreferredSize(); - SetWindowPos(container_->GetHWND(), HWND_TOPMOST, 0, 0, + SetWindowPos(container_->GetNativeView(), HWND_TOPMOST, 0, 0, ScaleValue(ps.width()), ScaleValue(ps.height()), SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE); } -- cgit v1.1