| Index: chrome/browser/ui/views/tabs/tab_strip.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| index 626805ed06334fe7b6188a71a1a5b8cd6bdb129f..d3c178e021a9d68e9e79d27ff6b985591c5a1df2 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_strip.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| @@ -985,9 +985,12 @@ void TabStrip::MaybeStartDrag(
|
| selection_model, detach_behavior, move_behavior);
|
| }
|
|
|
| -void TabStrip::ContinueDrag(const views::MouseEvent& event) {
|
| - if (drag_controller_.get())
|
| - drag_controller_->Drag();
|
| +void TabStrip::ContinueDrag(views::View* view, const gfx::Point& location) {
|
| + if (drag_controller_.get()) {
|
| + gfx::Point screen_location(location);
|
| + views::View::ConvertPointToScreen(view, &screen_location);
|
| + drag_controller_->Drag(screen_location);
|
| + }
|
| }
|
|
|
| bool TabStrip::EndDrag(bool canceled) {
|
| @@ -1310,9 +1313,8 @@ bool TabStrip::OnMousePressed(const views::MouseEvent& event) {
|
| return false;
|
| }
|
|
|
| -bool TabStrip::OnMouseDragged(const views::MouseEvent& event) {
|
| - if (drag_controller_.get())
|
| - drag_controller_->Drag();
|
| +bool TabStrip::OnMouseDragged(const views::MouseEvent& event) {
|
| + ContinueDrag(this, event.location());
|
| return true;
|
| }
|
|
|
|
|