summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/dragged_tab_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/tabs/dragged_tab_controller.cc')
-rw-r--r--chrome/browser/views/tabs/dragged_tab_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/tabs/dragged_tab_controller.cc b/chrome/browser/views/tabs/dragged_tab_controller.cc
index 7464b92..806faeb 100644
--- a/chrome/browser/views/tabs/dragged_tab_controller.cc
+++ b/chrome/browser/views/tabs/dragged_tab_controller.cc
@@ -832,7 +832,7 @@ void DraggedTabController::Detach() {
// Set up the photo booth to start capturing the contents of the dragged
// TabContents.
if (!photobooth_.get())
- photobooth_.reset(new HWNDPhotobooth(dragged_contents_->GetContainerHWND()));
+ photobooth_.reset(new HWNDPhotobooth(dragged_contents_->GetNativeView()));
// Update the View. This NULL check is necessary apparently in some
// conditions during automation where the view_ is destroyed inside a
@@ -1111,7 +1111,7 @@ bool DraggedTabController::CompleteDrag() {
void DraggedTabController::EnsureDraggedView() {
if (!view_.get()) {
RECT wr;
- GetWindowRect(dragged_contents_->GetContainerHWND(), &wr);
+ GetWindowRect(dragged_contents_->GetNativeView(), &wr);
view_.reset(new DraggedTabView(dragged_contents_, mouse_offset_,
gfx::Size(wr.right - wr.left, wr.bottom - wr.top)));