diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 21:58:18 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 21:58:18 +0000 |
commit | 8c3dc79bc13ba84f418d3c135e1bf296a3e29722 (patch) | |
tree | 32eb9688d500a90eb74a7c4f8cb5a97e507dd0fc /views/view_win.cc | |
parent | abaccb2cb8cff8138e5ea9daf420645e5852c9eb (diff) | |
download | chromium_src-8c3dc79bc13ba84f418d3c135e1bf296a3e29722.zip chromium_src-8c3dc79bc13ba84f418d3c135e1bf296a3e29722.tar.gz chromium_src-8c3dc79bc13ba84f418d3c135e1bf296a3e29722.tar.bz2 |
Refactors OSExchangeData for easier portability.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/164401
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view_win.cc')
-rw-r--r-- | views/view_win.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/views/view_win.cc b/views/view_win.cc index bf265f9..f0d71c4 100644 --- a/views/view_win.cc +++ b/views/view_win.cc @@ -8,6 +8,7 @@ #include "app/gfx/canvas.h" #include "app/gfx/path.h" #include "app/os_exchange_data.h" +#include "app/os_exchange_data_provider_win.h" #include "base/scoped_handle.h" #include "base/string_util.h" #include "views/accessibility/view_accessibility_wrapper.h" @@ -22,13 +23,14 @@ void View::DoDrag(const MouseEvent& e, int press_x, int press_y) { if (drag_operations == DragDropTypes::DRAG_NONE) return; - scoped_refptr<OSExchangeData> data = new OSExchangeData; - WriteDragData(press_x, press_y, data.get()); + OSExchangeData data; + WriteDragData(press_x, press_y, &data); // Message the RootView to do the drag and drop. That way if we're removed // the RootView can detect it and avoid calling us back. RootView* root_view = GetRootView(); - root_view->StartDragForViewFromMouseEvent(this, data, drag_operations); + root_view->StartDragForViewFromMouseEvent( + this, OSExchangeDataProviderWin::GetIDataObject(data), drag_operations); } ViewAccessibilityWrapper* View::GetViewAccessibilityWrapper() { |