Index: chrome/browser/views/tab_contents/tab_contents_view_win.h |
=================================================================== |
--- chrome/browser/views/tab_contents/tab_contents_view_win.h (revision 35459) |
+++ chrome/browser/views/tab_contents/tab_contents_view_win.h (working copy) |
@@ -13,6 +13,7 @@ |
class RenderViewContextMenuWin; |
class SadTabView; |
+class TabContentsDragWin; |
struct WebDropData; |
class WebDragSource; |
class WebDropTarget; |
@@ -62,6 +63,10 @@ |
// WidgetWin overridde. |
virtual views::FocusManager* GetFocusManager(); |
+ void EndDragging(); |
+ |
+ WebDropTarget* drop_target() const { return drop_target_.get(); } |
+ |
private: |
// A helper method for closing the tab. |
void CloseTab(); |
@@ -118,11 +123,6 @@ |
// accessible when unparented. |
views::FocusManager* focus_manager_; |
- // |drag_source_| is our callback interface passed to the system when we |
- // want to initiate a drag and drop operation. We use it to tell if a |
- // drag operation is happening. |
- scoped_refptr<WebDragSource> drag_source_; |
- |
// Set to true if we want to close the tab after the system drag operation |
// has finished. |
bool close_tab_after_drag_ends_; |
@@ -130,6 +130,9 @@ |
// Used to close the tab after the stack has unwound. |
base::OneShotTimer<TabContentsViewWin> close_tab_timer_; |
+ // Used to handle the drag-and-drop. |
+ scoped_refptr<TabContentsDragWin> drag_handler_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); |
}; |