Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4292)

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.cc

Issue 1907323003: Drag and drop cleans up touch sequences from the source window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update GR state without actually dispatching press events. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
index 6439c44a05e4541da8051f5567d65e9cc9792cc9..dacc01cd181cf2e4e001ed53192bf4eabe8518fb 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -578,7 +578,7 @@ TabDragController::DragBrowserToNewTabStrip(
#if defined(USE_AURA)
// Only Aura windows are gesture consumers.
- ui::GestureRecognizer::Get()->TransferEventsTo(
+ ui::GestureRecognizer::Get()->BeginTabDrag(
GetAttachedBrowserWidget()->GetNativeView(),
target_tabstrip->GetWidget()->GetNativeView());
#endif
@@ -1034,8 +1034,8 @@ void TabDragController::DetachIntoNewBrowserAndRunMoveLoop(
// Only Aura windows are gesture consumers.
gfx::NativeView attached_native_view =
attached_tabstrip_->GetWidget()->GetNativeView();
- ui::GestureRecognizer::Get()->TransferEventsTo(
- attached_native_view, dragged_widget->GetNativeView());
+ ui::GestureRecognizer::Get()->BeginTabDrag(attached_native_view,
+ dragged_widget->GetNativeView());
#endif
Detach(can_release_capture_ ? RELEASE_CAPTURE : DONT_RELEASE_CAPTURE);

Powered by Google App Engine
This is Rietveld 408576698