Index: content/renderer/render_view_impl.h |
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h |
index bee1c6571d95f91fb80d4e8b44c947931270aa92..f64cb3f9e250a8189ab228189d2f8ab4af55ba7e 100644 |
--- a/content/renderer/render_view_impl.h |
+++ b/content/renderer/render_view_impl.h |
@@ -626,9 +626,18 @@ class CONTENT_EXPORT RenderViewImpl |
const gfx::Point& screen_point, |
blink::WebDragOperation drag_operation); |
void OnDragSourceSystemDragEnded(); |
- void OnDragTargetDrop(const gfx::Point& client_pt, |
+ // |drop_data| will only be used when |is_valid_drop_data| is true. This is |
+ // because on most platforms (Aura), the drop data is available when the drag |
+ // starts and stays the same until it's dropped. On Android, the drop data is |
+ // unavailable until DragTargetDrop. So on Android, |drop_data| will contain |
+ // the real data and |is_valid_drop_data| is true. |
+ void OnDragTargetDrop(const content::DropData& drop_data, |
+ bool is_valid_drop_data, |
+ const gfx::Point& client_pt, |
const gfx::Point& screen_pt, |
int key_modifiers); |
+ // On Android, |drop_data| will contain dummy data because drop data is |
+ // unavailable until 'drop' action. |
void OnDragTargetDragEnter(const DropData& drop_data, |
const gfx::Point& client_pt, |
const gfx::Point& screen_pt, |