Chromium Code Reviews| 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..674284968d5d3d87e64e7cea1e1520e942454299 100644 |
| --- a/content/browser/web_contents/web_drag_dest_mac.h |
| +++ b/content/browser/web_contents/web_drag_dest_mac.h |
| @@ -9,8 +9,10 @@ |
| #include "base/strings/string16.h" |
| #include "content/common/content_export.h" |
| #include "content/public/common/drop_data.h" |
| +#include "ui/gfx/geometry/point.h" |
| namespace content { |
| +class RenderWidgetHostImpl; |
| class RenderViewHost; |
|
Avi (use Gerrit)
2016/11/17 19:39:23
v < w
paulmeyer
2016/11/17 20:46:43
Done.
|
| class WebContentsImpl; |
| class WebDragDestDelegate; |
| @@ -35,6 +37,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_; |
| @@ -67,8 +72,12 @@ CONTENT_EXPORT |
| - (void)draggingExited:(id<NSDraggingInfo>)info; |
| - (NSDragOperation)draggingUpdated:(id<NSDraggingInfo>)info |
| view:(NSView*)view; |
| -- (BOOL)performDragOperation:(id<NSDraggingInfo>)info |
| - view:(NSView*)view; |
| +- (BOOL)performDragOperation:(id<NSDraggingInfo>)info view:(NSView*)view; |
| + |
| +// Helper to call WebWidgetHostInputEventRouter::GetRenderWidgetHostAtPoint(). |
| +- (content::RenderWidgetHostImpl*) |
| +GetRenderWidgetHostAtPoint:(const NSPoint&)viewPoint |
| + transformedPt:(gfx::Point*)transformedPt; |
| @end |