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

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

Issue 1728193002: Support dragging texts into Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp and gn Created 4 years, 10 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
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 5aa3313f278c865aab9af9280ba91a1ab0569b27..b66f8226c0f8a361b8f3ae89c8d90ddf2fc1a6dd 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -713,6 +713,19 @@ void RenderViewHostImpl::DragTargetDrop(
key_modifiers));
}
+#if defined(OS_ANDROID)
aelias_OOO_until_Jul13 2016/03/01 19:57:32 Could you remove all "#if defined(OS_ANDROID)" fro
hush (inactive) 2016/03/01 23:54:19 I merged the new IPC into the existing IPC
+void RenderViewHostImpl::DragTargetDropWithData(const DropData& drop_data,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ int key_modifiers) {
+ // TODO(hush): filter the drop_data when we start to support dragging files.
+ const gfx::Point client_pt_in_viewport = ConvertDIPToViewport(client_pt);
+ Send(new DragMsg_TargetDropWithData(GetRoutingID(), drop_data,
+ client_pt_in_viewport, screen_pt,
+ key_modifiers));
+}
+#endif
+
void RenderViewHostImpl::DragSourceEndedAt(
int client_x, int client_y, int screen_x, int screen_y,
WebDragOperation operation) {
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/web_contents/web_contents_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698