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

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

Issue 375593002: Do not set the mouse event handler if Widget::SetCapture() fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 87b6ccff79c676afa757e0706c2b2402a5d14a88..5c1dd0780a7b4355b42f01873a52cc924afc8a89 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -915,12 +915,6 @@ void TabDragController::Attach(TabStrip* attached_tabstrip,
// drag isn't prematurely canceled.
attached_tabstrip_->GetWidget()->SetCapture(attached_tabstrip_);
attached_tabstrip_->OwnDragController(this);
-
- // Redirect all mouse events to the TabStrip so that the tab that originated
- // the drag can safely be deleted.
- static_cast<views::internal::RootView*>(
- attached_tabstrip_->GetWidget()->GetRootView())->SetMouseHandler(
- attached_tabstrip_);
pkotwicz 2014/07/16 18:50:11 This call was added a prior date to attached_tabst
}
void TabDragController::Detach(ReleaseCapture release_capture) {
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698