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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (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/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 7765de69bcad5474a376a061a0100e4a78d1bbea..7d73dec83c180f7029420014ecdfcea1f6374233 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -627,50 +627,6 @@ void RenderViewHostImpl::RenderProcessExited(RenderProcessHost* host,
delegate_->RenderViewTerminated(this, status, exit_code);
}
-void RenderViewHostImpl::DragTargetDragEnter(
- const DropData& drop_data,
- const gfx::Point& client_pt,
- const gfx::Point& screen_pt,
- WebDragOperationsMask operations_allowed,
- int key_modifiers) {
- DragTargetDragEnterWithMetaData(DropDataToMetaData(drop_data), client_pt,
- screen_pt, operations_allowed, key_modifiers);
-}
-
-void RenderViewHostImpl::DragTargetDragEnterWithMetaData(
- const std::vector<DropData::Metadata>& metadata,
- const gfx::Point& client_pt,
- const gfx::Point& screen_pt,
- WebDragOperationsMask operations_allowed,
- int key_modifiers) {
- Send(new DragMsg_TargetDragEnter(GetRoutingID(), metadata, client_pt,
- screen_pt, operations_allowed,
- key_modifiers));
-}
-
-void RenderViewHostImpl::DragTargetDragOver(
- const gfx::Point& client_pt,
- const gfx::Point& screen_pt,
- WebDragOperationsMask operations_allowed,
- int key_modifiers) {
- Send(new DragMsg_TargetDragOver(GetRoutingID(), client_pt, screen_pt,
- operations_allowed, key_modifiers));
-}
-
-void RenderViewHostImpl::DragTargetDragLeave() {
- Send(new DragMsg_TargetDragLeave(GetRoutingID()));
-}
-
-void RenderViewHostImpl::DragTargetDrop(const DropData& drop_data,
- const gfx::Point& client_pt,
- const gfx::Point& screen_pt,
- int key_modifiers) {
- DropData drop_data_with_permissions(drop_data);
- GrantFileAccessFromDropData(&drop_data_with_permissions);
- Send(new DragMsg_TargetDrop(GetRoutingID(), drop_data_with_permissions,
- client_pt, screen_pt, key_modifiers));
-}
-
void RenderViewHostImpl::FilterDropData(DropData* drop_data) {
#if DCHECK_IS_ON()
drop_data->view_id = GetRoutingID();

Powered by Google App Engine
This is Rietveld 408576698