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

Unified Diff: views/widget/native_widget_win.cc

Issue 6507028: Remove usages of RootView from View by moving relevant RootView API methods t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « views/widget/native_widget_win.h ('k') | views/widget/root_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_win.cc
===================================================================
--- views/widget/native_widget_win.cc (revision 75181)
+++ views/widget/native_widget_win.cc (working copy)
@@ -5,6 +5,10 @@
#include "views/widget/native_widget_win.h"
#include "base/scoped_ptr.h"
+#include "ui/base/dragdrop/drag_drop_types.h"
+#include "ui/base/dragdrop/drag_source.h"
+#include "ui/base/dragdrop/os_exchange_data.h"
+#include "ui/base/dragdrop/os_exchange_data_provider_win.h"
#include "ui/base/system_monitor/system_monitor.h"
#include "ui/base/view_prop.h"
#include "ui/base/win/hwnd_util.h"
@@ -218,6 +222,14 @@
}
}
+void NativeWidgetWin::RunShellDrag(const ui::OSExchangeData& data,
+ int operation) {
+ scoped_refptr<ui::DragSource> drag_source(new ui::DragSource);
+ DWORD effects;
+ DoDragDrop(ui::OSExchangeDataProviderWin::GetIDataObject(data), drag_source,
+ ui::DragDropTypes::DragOperationToDropEffect(operation), &effects);
+}
+
WidgetImpl* NativeWidgetWin::GetWidgetImpl() {
return listener_->GetWidgetImpl();
}
« no previous file with comments | « views/widget/native_widget_win.h ('k') | views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698