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

Unified Diff: base/base_drag_source.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
« no previous file with comments | « app/os_exchange_data_win_unittest.cc ('k') | base/base_drag_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_drag_source.h
===================================================================
--- base/base_drag_source.h (revision 35459)
+++ base/base_drag_source.h (working copy)
@@ -8,6 +8,7 @@
#include <objidl.h>
#include "base/basictypes.h"
+#include "base/ref_counted.h"
///////////////////////////////////////////////////////////////////////////////
//
@@ -18,7 +19,8 @@
// system. This object tells Windows whether or not the drag should continue,
// and supplies the appropriate cursors.
//
-class BaseDragSource : public IDropSource {
+class BaseDragSource : public IDropSource,
+ public base::RefCountedThreadSafe<BaseDragSource> {
public:
BaseDragSource();
virtual ~BaseDragSource() { }
@@ -45,8 +47,6 @@
virtual void OnDragSourceMove() { }
private:
- LONG ref_count_;
-
// Set to true if we want to cancel the drag operation.
bool cancel_drag_;
« no previous file with comments | « app/os_exchange_data_win_unittest.cc ('k') | base/base_drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698