Index: views/widget/root_view_win.cc |
=================================================================== |
--- views/widget/root_view_win.cc (revision 75181) |
+++ views/widget/root_view_win.cc (working copy) |
@@ -1,18 +1,11 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
#include "views/widget/root_view.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/gfx/canvas_skia.h" |
-using ui::OSExchangeData; |
-using ui::OSExchangeDataProviderWin; |
- |
namespace views { |
void RootView::OnPaint(HWND hwnd) { |
@@ -35,23 +28,4 @@ |
} |
} |
-void RootView::StartDragForViewFromMouseEvent( |
- View* view, |
- const OSExchangeData& data, |
- int operation) { |
- // NOTE: view may be null. |
- drag_view_ = view; |
- scoped_refptr<ui::DragSource> drag_source(new ui::DragSource); |
- DWORD effects; |
- DoDragDrop(OSExchangeDataProviderWin::GetIDataObject(data), drag_source, |
- ui::DragDropTypes::DragOperationToDropEffect(operation), &effects); |
- // If the view is removed during the drag operation, drag_view_ is set to |
- // NULL. |
- if (view && drag_view_ == view) { |
- View* drag_view = drag_view_; |
- drag_view_ = NULL; |
- drag_view->OnDragDone(); |
- } |
} |
- |
-} |