diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 21:42:59 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 21:42:59 +0000 |
commit | 4768c65bc656d4352632a6fc718c8eb6d5046c84 (patch) | |
tree | c75cffe227847e1e1ab0952d337c3c853692924e /views/view_win.cc | |
parent | 6638b8716b5630233efa54f8e8ea4b4758f01ca4 (diff) | |
download | chromium_src-4768c65bc656d4352632a6fc718c8eb6d5046c84.zip chromium_src-4768c65bc656d4352632a6fc718c8eb6d5046c84.tar.gz chromium_src-4768c65bc656d4352632a6fc718c8eb6d5046c84.tar.bz2 |
Adds support for initiating drags from bookmark menus.
BUG=none
TEST=make sure bookmark menus work on Windows.
Review URL: http://codereview.chromium.org/176006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view_win.cc')
-rw-r--r-- | views/view_win.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/views/view_win.cc b/views/view_win.cc index f0d71c4..c03e908 100644 --- a/views/view_win.cc +++ b/views/view_win.cc @@ -7,9 +7,6 @@ #include "app/drag_drop_types.h" #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" #include "views/border.h" @@ -18,21 +15,6 @@ namespace views { -void View::DoDrag(const MouseEvent& e, int press_x, int press_y) { - int drag_operations = GetDragOperations(press_x, press_y); - if (drag_operations == DragDropTypes::DRAG_NONE) - return; - - 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, OSExchangeDataProviderWin::GetIDataObject(data), drag_operations); -} - ViewAccessibilityWrapper* View::GetViewAccessibilityWrapper() { if (accessibility_.get() == NULL) { accessibility_.reset(new ViewAccessibilityWrapper(this)); |