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

Unified Diff: content/browser/web_contents/web_drag_dest_mac.h

Issue 2509933002: Drag-and-drop: Target drag messages (the sequel). (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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: content/browser/web_contents/web_drag_dest_mac.h
diff --git a/content/browser/web_contents/web_drag_dest_mac.h b/content/browser/web_contents/web_drag_dest_mac.h
index 2598ee0e886d265a7f0759a8574e7c91ef1c10c9..b44a828da007cea552a30f6b7db181d6713fc947 100644
--- a/content/browser/web_contents/web_drag_dest_mac.h
+++ b/content/browser/web_contents/web_drag_dest_mac.h
@@ -11,6 +11,7 @@
#include "content/public/common/drop_data.h"
namespace content {
+class RenderWidgetHostImpl;
class RenderViewHost;
class WebContentsImpl;
class WebDragDestDelegate;
@@ -35,6 +36,9 @@ CONTENT_EXPORT
// allow the drop.
NSDragOperation currentOperation_;
+ // Tracks the current RenderWidgetHost we're dragging over.
+ base::WeakPtr<content::RenderWidgetHostImpl> currentRWHForDrag_;
+
// Keep track of the render view host we're dragging over. If it changes
// during a drag, we need to re-send the DragEnter message.
RenderViewHostIdentifier currentRVH_;

Powered by Google App Engine
This is Rietveld 408576698