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

Unified Diff: chrome/browser/views/tab_contents/tab_contents_view_win.h

Issue 351029: Support dragging a virtual file out of the browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 12 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
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);
};
« no previous file with comments | « chrome/browser/views/tab_contents/tab_contents_drag_win.cc ('k') | chrome/browser/views/tab_contents/tab_contents_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698