summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/dragged_tab_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:06 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:06 +0000
commited8b1b805203b6ccdb5517d0c30cc689dde65e98 (patch)
tree88b8d0c2e552f291fbb01e8aa660806597e9d3fc /chrome/browser/views/tabs/dragged_tab_view.cc
parent71994cd0877f3528079b1154d46d90801e515292 (diff)
downloadchromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.zip
chromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.tar.gz
chromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.tar.bz2
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
Diffstat (limited to 'chrome/browser/views/tabs/dragged_tab_view.cc')
-rw-r--r--chrome/browser/views/tabs/dragged_tab_view.cc4
1 files changed, 2 insertions, 2 deletions
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);
}