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

Unified Diff: base/base_drag_source.h

Issue 155548: Merge 20436 - Fix a crash that happens if a tab is closed while... (Closed) Base URL: svn://chrome-svn/chrome/branches/193/src/
Patch Set: Created 11 years, 5 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 | « no previous file | 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 20694)
+++ base/base_drag_source.h (working copy)
@@ -23,6 +23,13 @@
BaseDragSource();
virtual ~BaseDragSource() { }
+ // Stop the drag operation at the next chance we get. This doesn't
+ // synchronously stop the drag (since Windows is controlling that),
+ // but lets us tell Windows to cancel the drag the next chance we get.
+ void CancelDrag() {
+ cancel_drag_ = true;
+ }
+
// IDropSource implementation:
HRESULT __stdcall QueryContinueDrag(BOOL escape_pressed, DWORD key_state);
HRESULT __stdcall GiveFeedback(DWORD effect);
@@ -40,6 +47,9 @@
private:
LONG ref_count_;
+ // Set to true if we want to cancel the drag operation.
+ bool cancel_drag_;
+
DISALLOW_EVIL_CONSTRUCTORS(BaseDragSource);
};
Property changes on: base\base_drag_source.h
___________________________________________________________________
Added: svn:mergeinfo
Merged /trunk/src/base/base_drag_source.h:r20436
Merged /branches/chrome_webkit_merge_branch/base/base_drag_source.h:r69-2775
« no previous file with comments | « no previous file | base/base_drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698