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

Unified Diff: ui/views/widget/native_widget_win.cc

Issue 11444013: Get drag and drop working for win aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: move DropTargetWin to DesktopDragDropClientWin Created 8 years 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: ui/views/widget/native_widget_win.cc
===================================================================
--- ui/views/widget/native_widget_win.cc (revision 171535)
+++ ui/views/widget/native_widget_win.cc (working copy)
@@ -673,10 +673,11 @@
CHECK_EQ(this, GetNativeWidgetForNativeView(GetNativeView()));
props_.push_back(ui::SetWindowSupportsRerouteMouseWheel(GetNativeView()));
+ internal::RootView* root_view =
+ static_cast<internal::RootView*>(GetWidget()->GetRootView());
+ drop_target_ = new DropTargetWin(root_view,
+ root_view->GetWidget()->GetNativeView());
- drop_target_ = new DropTargetWin(
- static_cast<internal::RootView*>(GetWidget()->GetRootView()));
-
// Windows special DWM window frame requires a special tooltip manager so
// that window controls in Chrome windows don't flicker when you move your
// mouse over them. See comment in aero_tooltip_manager.h.

Powered by Google App Engine
This is Rietveld 408576698